diff options
| author | Steven <burnett@posteo.de> | 2026-01-25 23:54:29 +0000 |
|---|---|---|
| committer | Steven <burnett@posteo.de> | 2026-01-25 23:54:29 +0000 |
| commit | 97d0583c92c733aa8497a99f5267d50151f6e965 (patch) | |
| tree | 825c006266bf3a57ab4dbb2d3d7df2f9d9dcc21d /docs/std/option.md | |
| parent | a5e8a3734fd850de53ad917d55ee5c2e73f39190 (diff) | |
fix(docs): replace remaining var references with let
Diffstat (limited to 'docs/std/option.md')
| -rw-r--r-- | docs/std/option.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/std/option.md b/docs/std/option.md index a048b00..fbbc296 100644 --- a/docs/std/option.md +++ b/docs/std/option.md @@ -8,13 +8,13 @@ import "std/option.zc" fn main() { - var val = Option<int>::Some(10); + let val = Option<int>::Some(10); if (val.is_some()) { println "{val.unwrap()}"; } - var nothing = Option<int>::None(); + let nothing = Option<int>::None(); println "{nothing.unwrap_or(0)}"; // Prints 0 } ``` |
