Skip to content

Commit

Permalink
more clean up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithSamuelM committed Feb 26, 2024
1 parent 2efbc0f commit 206eda3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Verticle white space matters. Code should have paragraphs. Balanced brackets,
indendation and blank lines demarcate paragraphs

For example

```c
void display(void)
{
int start;
Expand All @@ -223,13 +223,16 @@ void display(void)
if(start == -1)
return;
}
```
is more readable than
```c
void display(void){
int start; start = -1;
if(start == -1) return;
}
```

Line length matters. Which means variable length matters.
Simple logic statments that wrap are no longer simple.
Expand Down

0 comments on commit 206eda3

Please sign in to comment.