update the style guide

This commit is contained in:
Leo Arias 2018-06-29 17:54:44 +00:00
parent 533d5d4b1c
commit 8fdf3f5d45

View File

@ -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)