mirror of
https://github.com/Noratrieb/nilstrieb-c-style-guide-edition-2.git
synced 2026-01-14 15:25:10 +01:00
Update formatting.md
This commit is contained in:
parent
ba7a2b1386
commit
c98f09048c
1 changed files with 3 additions and 3 deletions
|
|
@ -19,9 +19,9 @@ body cannot fit into a single line, make a new function instead.
|
||||||
|
|
||||||
void foo() {
|
void foo() {
|
||||||
if (true)
|
if (true)
|
||||||
foo_if_body();
|
foo_if_body();
|
||||||
else
|
else
|
||||||
printf("True was false!");
|
printf("True was false!");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -33,4 +33,4 @@ C code must be indented with 3 spaces. The toplevel should be indented as well.
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
|
|
||||||
int main() {}
|
int main() {}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue