From: Daniel Stenberg Date: Mon, 14 Mar 2016 09:40:02 +0000 (+0100) Subject: CODE_STYLE: add example for indent style as well X-Git-Tag: curl-7_48_0~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ad3cf2fba65fb54931371441a712eccb274188c;p=thirdparty%2Fcurl.git CODE_STYLE: add example for indent style as well --- diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md index e06b0b8ea6..0dbf87bae6 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