vlib: update doc comments (#19231)

This commit is contained in:
Turiiya 2023-08-30 07:50:00 +02:00 committed by GitHub
parent 78c34326f1
commit f755118e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 20 deletions

View file

@ -16,8 +16,8 @@ pub fn getenv(key string) string {
return getenv_opt(key) or { '' }
}
// `getenv_opt` returns the value of the environment variable named by the key
// If there is not one found, it returns `none`.
// `getenv_opt` returns the value of a given environment variable.
// Returns `none` if the environment variable does not exist.
[manualfree]
pub fn getenv_opt(key string) ?string {
unsafe {