mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
update the style guide
This commit is contained in:
parent
533d5d4b1c
commit
8fdf3f5d45
@ -274,7 +274,7 @@ Within a grouping, place the ``view`` and ``pure`` functions last.
|
||||
Yes::
|
||||
|
||||
contract A {
|
||||
function A() public {
|
||||
constructor() public {
|
||||
...
|
||||
}
|
||||
|
||||
@ -318,7 +318,7 @@ No::
|
||||
// Public functions
|
||||
// ...
|
||||
|
||||
function A() public {
|
||||
constructor() public {
|
||||
...
|
||||
}
|
||||
|
||||
@ -706,7 +706,7 @@ manner as modifiers if the function declaration is long or hard to read.
|
||||
Yes::
|
||||
|
||||
contract A is B, C, D {
|
||||
function A(uint param1, uint param2, uint param3, uint param4, uint param5)
|
||||
constructor(uint param1, uint param2, uint param3, uint param4, uint param5)
|
||||
B(param1)
|
||||
C(param2, param3)
|
||||
D(param4)
|
||||
@ -719,7 +719,7 @@ Yes::
|
||||
No::
|
||||
|
||||
contract A is B, C, D {
|
||||
function A(uint param1, uint param2, uint param3, uint param4, uint param5)
|
||||
constructor(uint param1, uint param2, uint param3, uint param4, uint param5)
|
||||
B(param1)
|
||||
C(param2, param3)
|
||||
D(param4)
|
||||
@ -730,7 +730,7 @@ No::
|
||||
}
|
||||
|
||||
contract A is B, C, D {
|
||||
function A(uint param1, uint param2, uint param3, uint param4, uint param5)
|
||||
constructor(uint param1, uint param2, uint param3, uint param4, uint param5)
|
||||
B(param1)
|
||||
C(param2, param3)
|
||||
D(param4)
|
||||
|
Loading…
Reference in New Issue
Block a user