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/map.md | |
| parent | a5e8a3734fd850de53ad917d55ee5c2e73f39190 (diff) | |
fix(docs): replace remaining var references with let
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 { |
