... | ... | @@ -18,17 +18,17 @@ Indentation is **'2 spaces'**. **No tabs**. |
|
|
|
|
|
# 2. One statement per line #
|
|
|
|
|
|
Don’t put multiple statements on a single line.
|
|
|
The code is easier to read.
|
|
|
Don’t put multiple statements on a single line. The code is easier to read.
|
|
|
|
|
|
For variables, it is also better to have only one definition per line:
|
|
|
<b>NOT</b>
|
|
|
|
|
|
**DO NOT**
|
|
|
|
|
|
```c
|
|
|
char **a, *x;
|
|
|
```
|
|
|
|
|
|
<b>DO</b>
|
|
|
**DO**
|
|
|
|
|
|
```c
|
|
|
char **a = 0; /* add doc */
|
... | ... | |