Update CONTRIBUTING.md
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user