Page MenuHomeFreeBSD

D2842.1777771977.diff
No OneTemporary

Size
748 B
Referenced Files
None
Subscribers
None

D2842.1777771977.diff

Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -507,9 +507,10 @@
.Ql ( \&{
and
.Ql \&} )
-are
+are generally
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.
+Code may consistently always use braces for single statements.
Forever loops are done with
.Ic for Ns 's ,
not
@@ -565,6 +566,8 @@
Closing and opening braces go on the same line as the
.Ic else .
Braces that are not necessary may be left out.
+Braces that are not necessary may also be left in.
+The choice should be at the file level.
.Bd -literal
if (test)
stmt;

File Metadata

Mime Type
text/plain
Expires
Sun, May 3, 1:32 AM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28544075
Default Alt Text
D2842.1777771977.diff (748 B)

Event Timeline