summaryrefslogtreecommitdiff
path: root/docs/CODE_STYLE.md
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-03-14 10:40:02 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-03-14 10:40:02 +0100
commit2ad3cf2fba65fb54931371441a712eccb274188c (patch)
tree5e604cf2bb36cc3ec923c5605d03a761d42e435e /docs/CODE_STYLE.md
parentc5c7a3e40fc3f78abacb26717fff4a260b47db8c (diff)
downloadcurl-2ad3cf2fba65fb54931371441a712eccb274188c.tar.gz
CODE_STYLE: add example for indent style as well
Diffstat (limited to 'docs/CODE_STYLE.md')
-rw-r--r--docs/CODE_STYLE.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md
index e06b0b8ea..0dbf87bae 100644
--- a/docs/CODE_STYLE.md
+++ b/docs/CODE_STYLE.md
@@ -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