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/map.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/map.md')
| -rw-r--r-- | docs/std/map.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/std/map.md b/docs/std/map.md index f8bd76a..08949bd 100644 --- a/docs/std/map.md +++ b/docs/std/map.md @@ -8,13 +8,13 @@ import "std/map.zc" fn main() { - var m = Map<int>::new(); + let m = Map<int>::new(); m.put("one", 1); m.put("two", 2); if (m.contains("one")) { - var val = m.get("one"); + let val = m.get("one"); println "{val.unwrap()}"; } @@ -45,7 +45,7 @@ struct Map<V> { You can iterate over the map's key-value pairs using a `for` loop. ```zc -var m = Map<int>::new(); +let m = Map<int>::new(); m.put("a", 1); for entry in m { |
