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:
parent
7f940e498e
commit
7e94a1d84d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user