Update formatting.md

This commit is contained in:
nora 2022-07-27 22:28:34 +02:00 committed by GitHub
parent ba7a2b1386
commit c98f09048c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {}
``` ```