diff options
| author | Zuhaitz <zuhaitz.zechhub@gmail.com> | 2026-01-26 00:39:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 00:39:31 +0000 |
| commit | ca08979910e5a234a2423e4448ad0e284bf4f508 (patch) | |
| tree | e09702f7b0850feb00a6af7f315bff7448c2ed26 /docs/std/env.md | |
| parent | 6bef876bf900458a36260ca3fe96e23b06749d74 (diff) | |
| parent | 97d0583c92c733aa8497a99f5267d50151f6e965 (diff) | |
Merge pull request #132 from Burnett01/fix/var-const-remains-in-examples
Housekeeping: Fix var/const remains in examples and docs
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 |
