... | ... | @@ -22,13 +22,13 @@ 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:
|
|
|
** NOT **
|
|
|
<b>NOT</b>
|
|
|
|
|
|
```c
|
|
|
char **a, *x;
|
|
|
```
|
|
|
|
|
|
** DO **
|
|
|
<b>DO</b>
|
|
|
|
|
|
```c
|
|
|
char **a = 0; /* add doc */
|
... | ... | @@ -38,6 +38,6 @@ char *x = 0; /* add doc */ |
|
|
# 3. Line Length #
|
|
|
|
|
|
Most of modern screens are wide.
|
|
|
The limit on the length of lines is 240 columns.
|
|
|
The limit on the length of lines is **240 columns**.
|
|
|
|
|
|
Don't leave whitespace at the end of lines. |