From 2ad3cf2fba65fb54931371441a712eccb274188c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Mar 2016 10:40:02 +0100 Subject: [PATCH] CODE_STYLE: add example for indent style as well --- docs/CODE_STYLE.md | 6 ++++++ 1 file changed, 6 insertions(+) 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