Fallthrough

This commit is contained in:
Samuel Marks 2015-04-23 00:02:33 +10:00
parent 3bf74b3dda
commit 1faab2901e

View File

@ -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: