Added a clause about short functions

This commit is contained in:
Denton Liu 2016-05-06 10:19:28 -04:00
parent 7f940e498e
commit 7e94a1d84d

View File

@ -482,6 +482,11 @@ No::
} }
} }
When declaring short functions with a single statement, it is permissible to do it on a single line.
Permissible::
function shortFunction() { doSomething(); }
These guidelines for function declarations are intended to improve readability. These guidelines for function declarations are intended to improve readability.
Authors should use their best judgement as this guide does not try to cover all Authors should use their best judgement as this guide does not try to cover all