mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 14:54:21 -04:00
style.9: clarify FALLTHROUGH
FALLTHROUGH is intended for a block of code that cascades to the next case block. Multiple case statements sharing a single block of code do not need a FALLTHROUGH comment. Reviewed by: imp, markj, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47242
This commit is contained in:
parent
13da1af1cd
commit
d55d5dd9f7
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ parts of the
|
|||
cascade.
|
||||
Elements in a
|
||||
.Ic switch
|
||||
statement that cascade should have a
|
||||
statement that execute some code and then cascade to the next case should have a
|
||||
.Li FALLTHROUGH
|
||||
comment.
|
||||
Numerical arguments should be checked for accuracy.
|
||||
|
|
|
|||
Loading…
Reference in a new issue