style: Tighten up one use of 'may'
Declarations of variables must be placed before the statements of a block, by convention. Use 'must' instead of 'may' here and clarify langauge. Sponsored by: Netflix Reviewed by: pstef, rpokala, hselasky Differential Revision: https://reviews.freebsd.org/D35959
This commit is contained in:
parent
0cf5abd758
commit
e2fa10e676
@ -701,8 +701,7 @@ then in alphabetical order; multiple ones per line are okay.
|
|||||||
If a line overflows reuse the type keyword.
|
If a line overflows reuse the type keyword.
|
||||||
Variables may be initialized where declared especially when they
|
Variables may be initialized where declared especially when they
|
||||||
are constant for the rest of the scope.
|
are constant for the rest of the scope.
|
||||||
Declarations may be placed before executable lines at the start
|
Declarations may be in any block, but must be placed before statements.
|
||||||
of any block.
|
|
||||||
Calls to complicated functions should be avoided when initializing variables.
|
Calls to complicated functions should be avoided when initializing variables.
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
struct foo one, *two;
|
struct foo one, *two;
|
||||||
|
Loading…
Reference in New Issue
Block a user