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
4f1378d642
commit
9e28df26eb
1 changed files with 2 additions and 2 deletions
|
|
@ -12,14 +12,14 @@ body cannot fit into a single line, make a new function instead.
|
|||
```c
|
||||
#include<stdio.h>
|
||||
|
||||
void foo_if_body() {
|
||||
void if_bdy() {
|
||||
printf("Hello, ");
|
||||
printf("World!");
|
||||
}
|
||||
|
||||
void foo() {
|
||||
if (true)
|
||||
foo_if_body();
|
||||
if_bdy();
|
||||
else
|
||||
printf("True was false!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue