]> granicus.if.org Git - curl/commitdiff
CODE_STYLE: add example for indent style as well
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Mar 2016 09:40:02 +0000 (10:40 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Mar 2016 09:40:02 +0000 (10:40 +0100)
docs/CODE_STYLE.md

index e06b0b8ea6c529d848d4e8e820770d9382a39e54..0dbf87bae65d6f4ccaa54021ff59eb503a164c4e 100644 (file)
@@ -35,6 +35,12 @@ See the INTERNALS document on how we name non-exported library-global symbols.
 We use only spaces for indentation, never TABs. We use two spaces for each new
 open brace.
 
+    if(something_is_true) {
+      while(second_statement == fine) {
+        moo();
+      }
+    }
+
 ## Comments
 
 Since we write C89 code, `//` comments are not allowed. They weren't