summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-03-22 08:19:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-03-22 08:36:21 +0100
commita136cdeaf1868d833d4f09ffe3bb923f6e2edd86 (patch)
treeba72ce54dd8626453fd6cf5b9c503530d0177c4f
parentf7bb1fc1d78c6a4389d56438be686534d8b637ee (diff)
downloadcurl-a136cdeaf1868d833d4f09ffe3bb923f6e2edd86.tar.gz
CODE_STYLE: indend example code
... to make it look nicer in markdown outputa
-rw-r--r--docs/CODE_STYLE.md12
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