mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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.
|
||||
Variables may be initialized where declared especially when they
|
||||
are constant for the rest of the scope.
|
||||
Declarations may be placed before executable lines at the start
|
||||
of any block.
|
||||
Declarations may be in any block, but must be placed before statements.
|
||||
Calls to complicated functions should be avoided when initializing variables.
|
||||
.Bd -literal
|
||||
struct foo one, *two;
|
||||
|
Loading…
Reference in New Issue
Block a user