Skip to content

Commit 70870a6

Browse files
cameelnikola-matic
authored andcommitted
style guide: Add events and errors to the order of definitions at file level
1 parent 77cf950 commit 70870a6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/style-guide.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,13 +1045,15 @@ No:
10451045
Order of Layout
10461046
***************
10471047

1048-
Layout contract elements in the following order:
1048+
Contract elements should be laid out in the following order:
10491049

10501050
1. Pragma statements
10511051
2. Import statements
1052-
3. Interfaces
1053-
4. Libraries
1054-
5. Contracts
1052+
3. Events
1053+
4. Errors
1054+
5. Interfaces
1055+
6. Libraries
1056+
7. Contracts
10551057

10561058
Inside each contract, library or interface, use the following order:
10571059

0 commit comments

Comments
 (0)