diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-03-22 08:19:08 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-03-22 08:36:21 +0100 |
commit | a136cdeaf1868d833d4f09ffe3bb923f6e2edd86 (patch) | |
tree | ba72ce54dd8626453fd6cf5b9c503530d0177c4f | |
parent | f7bb1fc1d78c6a4389d56438be686534d8b637ee (diff) | |
download | curl-a136cdeaf1868d833d4f09ffe3bb923f6e2edd86.tar.gz |
CODE_STYLE: indend example code
... to make it look nicer in markdown outputa
-rw-r--r-- | docs/CODE_STYLE.md | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md index d77fc4476..033a33bce 100644 --- a/docs/CODE_STYLE.md +++ b/docs/CODE_STYLE.md @@ -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 |