Update CONTRIBUTING.md

This commit is contained in:
László Monda
2016-12-11 23:21:33 +01:00
committed by GitHub
parent 39ad8c6735
commit 7bebaff8dd

View File

@@ -10,7 +10,7 @@
## Naming identifiers ## Naming identifiers
Functions are written with UpperCamelCase and noun follows verb. Functions are written with UpperCamelCase and verb is followed by noun.
``` ```
DoThis(); DoThis();
@@ -40,7 +40,7 @@ typedef struct {
} pointer_t; } pointer_t;
``` ```
## If ## Control structures
``` ```
if (something) { if (something) {
@@ -48,25 +48,17 @@ if (something) {
} else { } else {
... ...
} }
```
## for
```
for (uint8_t i; i<j; i++) { for (uint8_t i; i<j; i++) {
... ...
} }
```
## while
```
while (condition) { while (condition) {
... ...
} }
``` ```
## function declaration ## Function declaration
``` ```
void do_this() void do_this()
@@ -75,7 +67,7 @@ void do_this()
} }
``` ```
## function calls ## Function calls
``` ```
myFunction(); myFunction();