CodingStyle: add an extra line for the braces explaination

The extra call "dosomethingelse()" is added with the
intention that user will not be confused to add braces
around single lined "if" conditions.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-03-18 02:22:32 +02:00 committed by Dirk Hohndel
parent 2ffdb8945f
commit 120088fd16

View file

@ -42,6 +42,7 @@ Basic rules
if (condition) {
dosomething();
dosomethingelse();
}
- both sides of an if / else clause either use or do not use curly braces: