TrustedUser
574
edits
(→Switch / Case constructs: Added best practice to comment on fallthrough.) |
(→Switch / Case constructs: Using "Fall Through" as more common in codebase, and more clear english) |
||
Line 151: | Line 151: | ||
case kSomeCmd: | case kSomeCmd: | ||
SomeCmd(); | SomeCmd(); | ||
// | // Fall Through intended | ||
case kSomeVerySimilarCmd: | case kSomeVerySimilarCmd: | ||
SomeMoreCmd(); | SomeMoreCmd(); | ||
Line 166: | Line 166: | ||
} | } | ||
</syntax> | </syntax> | ||
* Note comment on whether | * Note comment on whether fall through is intentional. | ||
== Naming == | == Naming == |