You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A style guide is about consistency. Consistency with this style guide is important. Consistency within a project is more important. Consistency within one module or function is most important.
30
30
31
-
But most importantly: **know when to be inconsistent** -- sometimes the style guide just doesn't apply. When in doubt, use your best judgement. Look at other examples and decide what looks best. And don't hesitate to ask!
31
+
But most importantly: **know when to be inconsistent** -- sometimes the style guide just doesn't apply. When in doubt, use your best judgment. Look at other examples and decide what looks best. And don't hesitate to ask!
32
32
33
33
34
34
***********
@@ -51,7 +51,7 @@ Mixing tabs and spaces should be avoided.
51
51
Blank Lines
52
52
===========
53
53
54
-
Surround top level declarations in solidity source with two blank lines.
54
+
Surround top level declarations in Solidity source with two blank lines.
55
55
56
56
Yes:
57
57
@@ -680,7 +680,7 @@ No:
680
680
}
681
681
682
682
For long function declarations, it is recommended to drop each argument onto
683
-
it's own line at the same indentation level as the function body. The closing
683
+
its own line at the same indentation level as the function body. The closing
684
684
parenthesis and opening bracket should be placed on their own line as well at
685
685
the same indentation level as the function declaration.
686
686
@@ -933,7 +933,7 @@ Permissible:
933
933
function shortFunction() public { doSomething(); }
934
934
935
935
These guidelines for function declarations are intended to improve readability.
936
-
Authors should use their best judgement as this guide does not try to cover all
936
+
Authors should use their best judgment as this guide does not try to cover all
937
937
possible permutations for function declarations.
938
938
939
939
Mappings
@@ -1023,7 +1023,7 @@ No:
1023
1023
1024
1024
* Operators with a higher priority than others can exclude surrounding
1025
1025
whitespace in order to denote precedence. This is meant to allow for
1026
-
improved readability for complex statement. You should always use the same
1026
+
improved readability for complex statements. You should always use the same
1027
1027
amount of whitespace on either side of an operator:
0 commit comments