mirror of
https://github.com/curl/curl.git
synced 2026-05-15 05:56:19 +03:00
CODE_STYLE: indend example code
... to make it look nicer in markdown outputa
This commit is contained in:
parent
f7bb1fc1d7
commit
a136cdeaf1
1 changed files with 5 additions and 7 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue