Added a clause about short functions

This commit is contained in:
Denton Liu committed 2016-05-06 10:19:28 -04:00
1 parent 7f940e498e
commit 7e94a1d84d
1 file changed
+5
+5
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.
Authors should use their best judgement as this guide does not try to cover all