From 23d98837d3a2c0886a7b0e3c117175c03444b2da Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 7 Sep 2016 17:16:06 +0200 Subject: C-STYLE: fix indentation --- C-STYLE.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'C-STYLE.md') diff --git a/C-STYLE.md b/C-STYLE.md index 24a4396..a8f5f3c 100644 --- a/C-STYLE.md +++ b/C-STYLE.md @@ -44,12 +44,12 @@ but merely how to format it. * For dangling else, use `{ }` around the outer if: - if (bar) { - if (foo) - foo(); - else - notfoo(); - } + if (bar) { + if (foo) + foo(); + else + notfoo(); + } * Use spaces around assignments and comparisons, after keywords, commas, colons and semicolons, @@ -166,21 +166,21 @@ but merely how to format it. * Write single line comments like this: - /* foo */ - // C++ style is also ok. + /* foo */ + // C++ style is also ok. * Use at least two spaces before end-of-line comments in a code line. * Write multi-line comments like this: - /* - * Important comments - * at the beginning of the file. - */ + /* + * Important comments + * at the beginning of the file. + */ - /* Inline comments - that can span - multiple lines. */ + /* Inline comments + that can span + multiple lines. */ * Avoid superfluous comments. -- cgit 1.4.1