mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
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
|
||||
if/while conditions we prefer:
|
||||
|
||||
CURLcode result = CURLE_OK;
|
||||
|
||||
result = do_something();
|
||||
if(!result) {
|
||||
/* something went wrong */
|
||||
return result;
|
||||
}
|
||||
result = do_something();
|
||||
if(!result) {
|
||||
/* something went wrong */
|
||||
return result;
|
||||
}
|
||||
|
||||
## No assignments in conditions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user