From a136cdeaf1868d833d4f09ffe3bb923f6e2edd86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 22 Mar 2016 08:19:08 +0100 Subject: CODE_STYLE: indend example code ... to make it look nicer in markdown outputa --- docs/CODE_STYLE.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3