summaryrefslogtreecommitdiff
path: root/docs/std/env.md
diff options
context:
space:
mode:
authorSteven <burnett@posteo.de>2026-01-25 23:54:29 +0000
committerSteven <burnett@posteo.de>2026-01-25 23:54:29 +0000
commit97d0583c92c733aa8497a99f5267d50151f6e965 (patch)
tree825c006266bf3a57ab4dbb2d3d7df2f9d9dcc21d /docs/std/env.md
parenta5e8a3734fd850de53ad917d55ee5c2e73f39190 (diff)
fix(docs): replace remaining var references with let
Diffstat (limited to 'docs/std/env.md')
-rw-r--r--docs/std/env.md10
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