golang / tour

[mirror] A Tour of Go
BSD 3-Clause "New" or "Revised" License
1.53k stars 521 forks source link

Syntax of Test of Key in Map is incorrect #1607

Closed munenendereba closed 2 months ago

munenendereba commented 2 months ago

Context: https://go.dev/tour/moretypes/22

The below code is incorrect, it reads elem, ok = m[key] but I believe it should read elem, ok := m[key]

image

munenendereba commented 2 months ago

A Note is already present;