mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Fallthrough
This commit is contained in:
parent
3bf74b3dda
commit
1faab2901e
@ -181,6 +181,10 @@ func learnFlowControl() {
|
||||
case 1:
|
||||
case 42:
|
||||
// Cases don't "fall through".
|
||||
/*
|
||||
There is a `fallthrough` keyword however, see:
|
||||
https://github.com/golang/go/wiki/Switch#fall-through
|
||||
*/
|
||||
case 43:
|
||||
// Unreached.
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user