]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Fix missing curly braces
authorHao Liu <hliu@redhat.com>
Wed, 10 Dec 2014 07:25:08 +0000 (15:25 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 10 Dec 2014 10:21:31 +0000 (11:21 +0100)
Signed-off-by: Hao Liu <hliu@redhat.com>
HACKING
docs/hacking.html.in

diff --git a/HACKING b/HACKING
index 884e78cadda96d96734927ade5afc450b109fa7a..94d9d2cb45ac2ddc231bce79c289d50b6bfa413e 100644 (file)
--- a/HACKING
+++ b/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
index a73b1e0c857d041c204bb304305557e8b1bd3e27..53786b7d2afd9ee725dab90472d1ce1fd11abf41 100644 (file)
 
 <pre>
   while (expr1 &amp;&amp;
-         expr2)           // multi-line, at same indentation, {} required
+         expr2) {         // multi-line, at same indentation, {} required
       single_line_stmt();
+  }
 </pre>
 
     <p>