X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=Documentation%2FCodingStyle;h=2b90d328b3ba5595c4f3a0e6bdc7c236346f550c;hb=92e712da55b2e5776fee7e177e789c01828a1bf4;hp=c940239d967811083278cf3c88c4342df18092ba;hpb=eebb6fb4ae2f60a82e38afb6d8b373a4216bf891;p=~andy%2Flinux diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index c940239d967..2b90d328b3b 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -166,8 +166,8 @@ if (condition) else do_that(); -This does not apply if one branch of a conditional statement is a single -statement. Use braces in both branches. +This does not apply if only one branch of a conditional statement is a single +statement; in the latter case use braces in both branches: if (condition) { do_this();