Change whitespace section to include exception

For single-line functions, some whitespace padding
makes the functions slightly more readable.
This commit is contained in:
Denton Liu 2016-05-06 10:36:32 -04:00
parent d4125c4f07
commit b6fd6ddc99

View File

@ -155,7 +155,7 @@ Whitespace in Expressions
Avoid extraneous whitespace in the following situations: Avoid extraneous whitespace in the following situations:
Immediately inside parenthesis, brackets or braces. Immediately inside parenthesis, brackets or braces, with the exception of single-line function declarations.
Yes:: Yes::
@ -165,6 +165,10 @@ No::
spam( ham[ 1 ], Coin( { name: "ham" } ) );` spam( ham[ 1 ], Coin( { name: "ham" } ) );`
Exception::
function singleLine() { spam(); }
Immediately before a comma, semicolon: Immediately before a comma, semicolon:
Yes:: Yes::