Parcourir la source

Update README.md

Simplify 5) and add 8) which tells people to use array[index + 0] if they do array[index + 1]
Jens Steube il y a 10 ans
Parent
commit
ffa46ce948
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -26,9 +26,10 @@ Contributions are welcome and encouraged, provided your code is of sufficient qu
 2. Adheres to either C89, C90, or C99 standards
 3. Compiles cleanly with no warnings when compiled with `-W -Wall -std=c99`
 4. Uses [Allman-style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) code blocks & indentation
-5. Uses 2-character tabs and 2-character indentations
+5. Uses 2-spaces as indentation or a tab if it's required (for example: Makefiles)
 6. Uses lower-case function and variable names
 7. Avoids the use of `!` and uses positive conditionals wherever possible (e.g., `if (foo == 0)` instead of `if (!foo)`, and `if (foo)` instead of `if (foo !=0)`)
+8. Use code like array[index + 0] if you also need to do array[index + 1], to keep it aligned
 
 You can use GNU Indent to help assist you with the style requirements: