diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:24:29 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:24:29 +0200 |
commit | 6e08dddccb29ff35c0a18def56f6b6f05eb43bc2 (patch) | |
tree | 659c869a72ba8c7d8d7a3dbf896a074bfd02951a /doc | |
parent | 944b2ee7b0ad7f3fc54309c0ab568acbe7521724 (diff) |
doc/style(9): describe local variables rules
Diffstat (limited to 'doc')
-rw-r--r-- | doc/style.9.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/style.9.txt b/doc/style.9.txt index 93683d8..8d87efb 100644 --- a/doc/style.9.txt +++ b/doc/style.9.txt @@ -492,6 +492,13 @@ error_subobj: } -------------------------------------------------------------------------------- +Local variables +~~~~~~~~~~~~~~~ + +Local variables must be declared at the beginning of their scope. An empty +line separates them from the function body. A notable exception is iterators, +which may be declared inside loop statements. + Common functions and methods ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |