diff options
Diffstat (limited to 'docs/std/env.md')
| -rw-r--r-- | docs/std/env.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/std/env.md b/docs/std/env.md index 09ece60..dd56e4f 100644 --- a/docs/std/env.md +++ b/docs/std/env.md @@ -10,7 +10,7 @@ import "std/env.zc" fn main() { Env::set("HELLO", "world"); - var hello = Env::get("HELLO"); + let hello = Env::get("HELLO"); if (hello.is_some()) { println "Hello {hello.unwrap()}"; @@ -31,7 +31,7 @@ enum EnvRes { ### get -Retrieves the env-var as borrowed string (char *) (no alloc) +Retrieves the env-variable as borrowed string (char *) (no alloc) ```zc fn get(name: string) -> Option<string> @@ -39,7 +39,7 @@ fn get(name: string) -> Option<string> ### get_dup -Retrieves the env-var as caller-owned String() (heap alloc) +Retrieves the env-variable as caller-owned String() (heap alloc) ```zc fn get_dup(name: string) -> Option<String> @@ -47,7 +47,7 @@ fn get_dup(name: string) -> Option<String> ### set -Sets an env-var variable +Sets an env-variable ```zc fn set(name: string, value: string) -> EnvRes @@ -55,7 +55,7 @@ fn set(name: string, value: string) -> EnvRes ### unset -Unsets an existing env-var +Unsets an existing env-variable ```zc fn unset(name: string) -> EnvRes |
