diff options
-rw-r--r-- | docs/style-guide.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst index bc32f891..ef2c334f 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -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 |