From 97d0583c92c733aa8497a99f5267d50151f6e965 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 25 Jan 2026 23:54:29 +0000 Subject: fix(docs): replace remaining var references with let --- docs/std/env.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/std/env.md') 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 @@ -39,7 +39,7 @@ fn get(name: string) -> Option ### 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 @@ -47,7 +47,7 @@ fn get_dup(name: string) -> Option ### 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 -- cgit v1.2.3