1
0
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:
Daniel Stenberg 2016-03-22 08:19:08 +01:00
parent f7bb1fc1d7
commit a136cdeaf1

View File

@ -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