mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-09 16:26:53 +02:00
Fallthrough
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user