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 ```c
#include<stdio.h> #include<stdio.h>
void foo_if_body() { void if_bdy() {
printf("Hello, "); printf("Hello, ");
printf("World!"); printf("World!");
} }
void foo() { void foo() {
if (true) if (true)
foo_if_body(); if_bdy();
else else
printf("True was false!"); printf("True was false!");
} }