From: Daniel Stenberg Date: Tue, 22 Mar 2016 07:19:08 +0000 (+0100) Subject: CODE_STYLE: indend example code X-Git-Tag: curl-7_48_0~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a136cdeaf1868d833d4f09ffe3bb923f6e2edd86;p=thirdparty%2Fcurl.git CODE_STYLE: indend example code ... to make it look nicer in markdown outputa --- diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md index d77fc44764..033a33bce7 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