mirror of https://gitee.com/openkylin/libvirt.git
docs: Fix missing curly braces
Signed-off-by: Hao Liu <hliu@redhat.com>
This commit is contained in:
parent
9788007892
commit
0d60a03094
3
HACKING
3
HACKING
|
@ -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 &&
|
||||
expr2) // multi-line, at same indentation, {} required
|
||||
expr2) { // multi-line, at same indentation, {} required
|
||||
single_line_stmt();
|
||||
}
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Reference in New Issue