diff --git a/README.md b/README.md index c80068cdc..79858f1d8 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Contributions are welcome and encouraged, provided your code is of sufficient qu 4. Uses [Allman-style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) code blocks & indentation 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)`) +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: