提交 0d60a030 编写于 作者: H Hao Liu 提交者: Martin Kletzander

docs: Fix missing curly braces

Signed-off-by: NHao Liu <hliu@redhat.com>
上级 97880078
......@@ -383,8 +383,9 @@ single-'statement' loop: each has only one 'line' in its body.
single_line_stmt(); // {} is optional (not enforced either way)
while (expr1 &&
expr2) // multi-line, at same indentation, {} required
expr2) { // multi-line, at same indentation, {} required
single_line_stmt();
}
However, the moment your loop/if/else body extends on to a second line, for
whatever reason (even if it's just an added comment), then you should add
......
......@@ -481,8 +481,9 @@
<pre>
while (expr1 &amp;&amp;
expr2) // multi-line, at same indentation, {} required
expr2) { // multi-line, at same indentation, {} required
single_line_stmt();
}
</pre>
<p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册