summary refs log tree commit diff
path: root/C-STYLE.md
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-09-07 17:16:06 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-09-07 17:16:06 +0200
commit23d98837d3a2c0886a7b0e3c117175c03444b2da (patch)
tree20ce27d969b80e5f15d881372186a0bc967908ac /C-STYLE.md
parentffb7fcc857a3c11d8baf00165134d0612c8bb48f (diff)
downloadstyleguide-23d98837d3a2c0886a7b0e3c117175c03444b2da.tar.gz
styleguide-23d98837d3a2c0886a7b0e3c117175c03444b2da.tar.xz
styleguide-23d98837d3a2c0886a7b0e3c117175c03444b2da.zip
C-STYLE: fix indentation
Diffstat (limited to 'C-STYLE.md')
-rw-r--r--C-STYLE.md30
1 files changed, 15 insertions, 15 deletions
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.