Skip to content

Commit 6bf0fbf

Browse files
authored
Switch the order of 'require' and 'alias' (#199)
Switch the order of 'require' and 'alias' By switching the order of `require` and `alias` it forces you to write the full module when requiring. This makes it more explicit which module is required.
1 parent f6fd749 commit 6bf0fbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,8 @@ generally preferred practice.
827827
1. `@behaviour`
828828
1. `use`
829829
1. `import`
830-
1. `alias`
831830
1. `require`
831+
1. `alias`
832832
1. `@module_attribute`
833833
1. `defstruct`
834834
1. `@type`
@@ -854,11 +854,11 @@ generally preferred practice.
854854
import Something
855855
import SomethingElse
856856
857+
require Integer
858+
857859
alias My.Long.Module.Name
858860
alias My.Other.Module.Example
859861
860-
require Integer
861-
862862
@module_attribute :foo
863863
@other_attribute 100
864864

0 commit comments

Comments
 (0)