Update style.9 to reflect consensus on developer's mailing list

allowing redundant braces.

Differential Revision: https://reviews.freebsd.org/D2842
This commit is contained in:
Warner Losh 2015-06-17 21:25:36 +00:00
parent 5fe29cdf20
commit b6c9950099
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284527

View File

@ -503,13 +503,14 @@ Code which is unreachable for non-obvious reasons may be marked /*
.Pp
Space after keywords
.Pq Ic if , while , for , return , switch .
No braces
Two styles of braces
.Ql ( \&{
and
.Ql \&} )
are
used for control statements with zero or only a single statement unless that
statement is more than a single line in which case they are permitted.
are allowed for single line statements.
Either they are used for all single statements, or
they are used only where needed for clarity.
Usage within a file should be consistent.
Forever loops are done with
.Ic for Ns 's ,
not