diff options
author | Neil Moore <neil@s-z.org> | 2013-11-15 16:31:17 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-15 16:31:17 -0500 |
commit | 0de37655ef7d25310da16ed582987b21b138af47 (patch) | |
tree | 8676057f2b06e5f28336162e16c1ecee87ade248 /crawl-ref/docs/develop | |
parent | adbefe88a525d5816b0c33ca75e6c290170c6e8f (diff) | |
download | crawl-ref-0de37655ef7d25310da16ed582987b21b138af47.tar.gz crawl-ref-0de37655ef7d25310da16ed582987b21b138af47.zip |
Fix grammar and add one more example.
Include an example of the kind of return statement people might still
be inclined to (wrongly) parenthesise.
Diffstat (limited to 'crawl-ref/docs/develop')
-rw-r--r-- | crawl-ref/docs/develop/coding_conventions.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/docs/develop/coding_conventions.txt b/crawl-ref/docs/develop/coding_conventions.txt index b68e60fd58..872fb1f70b 100644 --- a/crawl-ref/docs/develop/coding_conventions.txt +++ b/crawl-ref/docs/develop/coding_conventions.txt @@ -423,7 +423,7 @@ Put a space before opening parenthesis if it's part of a conditional or preceded H) Parenthesis around the value of return statement --------------------------------------------------- -None. The parenthesis serve no purpose other than making the statement looks +None. The parenthesis serve no purpose other than making the statement look like a function call. return true; @@ -431,3 +431,5 @@ like a function call. return -1; return coinflip(); + + return form_can_wield(form) || form == TRAN_DRAGON; |