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/option.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/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 } ``` |
