mirror of
https://github.com/Noratrieb/nilstrieb-c-style-guide-edition-2.git
synced 2026-01-14 15:25:10 +01:00
deploy: 9e28df26eb
This commit is contained in:
parent
d9bb479139
commit
492783020c
5 changed files with 8 additions and 8 deletions
|
|
@ -152,14 +152,14 @@ and therefore readability comes before writability.</p>
|
|||
body cannot fit into a single line, make a new function instead.</p>
|
||||
<pre><code class="language-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!");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,14 +152,14 @@ and therefore readability comes before writability.</p>
|
|||
body cannot fit into a single line, make a new function instead.</p>
|
||||
<pre><code class="language-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!");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,14 +153,14 @@ and therefore readability comes before writability.</p>
|
|||
body cannot fit into a single line, make a new function instead.</p>
|
||||
<pre><code class="language-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!");
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue