We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 767d690 commit 4bfbed2Copy full SHA for 4bfbed2
lib/elixir/lib/kernel/special_forms.ex
@@ -572,8 +572,9 @@ defmodule Kernel.SpecialForms do
572
import List, only: [flatten: 1]
573
import String, except: [split: 2]
574
575
- Notice that calling `except` for a previously declared `import/2`
576
- simply filters the previously imported elements. For example:
+ Notice that calling `except` is always exclusive on a previously
+ declared `import/2`. If there is no previous import, then it applies
577
+ to all functions and macros in the module. For example:
578
579
import List, only: [flatten: 1, keyfind: 4]
580
import List, except: [flatten: 1]
0 commit comments