CODE_STYLE: indend example code
... to make it look nicer in markdown outputa
This commit is contained in:
parent
f7bb1fc1d7
commit
a136cdeaf1
@ -107,13 +107,11 @@ Rather than test a conditional value such as a bool against TRUE or FALSE, a
|
|||||||
pointer against NULL or != NULL and an int against zero or not zero in
|
pointer against NULL or != NULL and an int against zero or not zero in
|
||||||
if/while conditions we prefer:
|
if/while conditions we prefer:
|
||||||
|
|
||||||
CURLcode result = CURLE_OK;
|
result = do_something();
|
||||||
|
if(!result) {
|
||||||
result = do_something();
|
/* something went wrong */
|
||||||
if(!result) {
|
return result;
|
||||||
/* something went wrong */
|
}
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
## No assignments in conditions
|
## No assignments in conditions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user