Skip to content

Commit 30b6b24

Browse files
committed
Fix map examples in Umka spec
1 parent 194f68e commit 30b6b24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/lang.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Examples:
316316

317317
```
318318
map[str]real
319-
map[[]int]str
319+
map[[2]int]str
320320
```
321321

322322
Maps require initialization by assignment from a map literal or by explicitly calling `make()`.
@@ -911,9 +911,9 @@ Examples:
911911
```
912912
[3]real{2.3, -4.1 / 2, b}
913913
[]any{7.2, "Hello", [2]int{3, 5}}
914-
map[[]int]str{
915-
[]int{13, 15}: "First",
916-
[]int{57, 89}: "Second",
914+
map[[2]int]str{
915+
{13, 15}: "First",
916+
{57, 89}: "Second",
917917
}
918918
Vec{x: 2, y: 8}
919919
Mat{ {1, 2}, {3, 4} } // Nested literals' types omitted

0 commit comments

Comments
 (0)