mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added a clause about short functions
This commit is contained in:
1 parent
7f940e498e
commit
7e94a1d84d
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user