Update formatting.md

This commit is contained in:
nora 2022-07-28 10:56:31 +02:00 committed by GitHub
parent 4f1378d642
commit 9e28df26eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!");
}