golang / tour

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

tour: Switch evaluation order typo in sentence #1586

Closed PythonCoderUnicorn closed 2 months ago

PythonCoderUnicorn commented 4 months ago

Context: https://go.dev/tour/flowcontrol/10

(For example,

switch i {
case 0:
case f():
}

there is a unmatched ( in the For example,

ALTree commented 2 months ago

No it's actually matched by the ) in "does not call f if i==0.)"