aboutsummaryrefslogtreecommitdiff
path: root/docs/CODE_STYLE.md
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-04-09 17:04:46 +0100
committerSteve Holme <steve_holme@hotmail.com>2016-04-09 17:04:46 +0100
commit9b03bca6e6cc3569537a7f25f79879045fd22348 (patch)
tree060a25119d8e952e7e581466d7609e5286824117 /docs/CODE_STYLE.md
parentf044cbe6fc9411262a90420e109e23d282a84b62 (diff)
CODE_STYLE: Added ternary operator example to 'Space around operators'
Following conversation on the libcurl mailing list.
Diffstat (limited to 'docs/CODE_STYLE.md')
-rw-r--r--docs/CODE_STYLE.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/CODE_STYLE.md b/docs/CODE_STYLE.md
index 033a33bce..73a4d94b7 100644
--- a/docs/CODE_STYLE.md
+++ b/docs/CODE_STYLE.md
@@ -160,6 +160,7 @@ Examples:
ptr = &address;
contents = *pointer;
complement = ~bits;
+ empty = (!*string) ? TRUE : FALSE;
## Platform dependent code