Skip to content

Commit 4bfbed2

Browse files
authored
Improve docs for import
1 parent 767d690 commit 4bfbed2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/elixir/lib/kernel/special_forms.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,9 @@ defmodule Kernel.SpecialForms do
572572
import List, only: [flatten: 1]
573573
import String, except: [split: 2]
574574
575-
Notice that calling `except` for a previously declared `import/2`
576-
simply filters the previously imported elements. For example:
575+
Notice that calling `except` is always exclusive on a previously
576+
declared `import/2`. If there is no previous import, then it applies
577+
to all functions and macros in the module. For example:
577578
578579
import List, only: [flatten: 1, keyfind: 4]
579580
import List, except: [flatten: 1]

0 commit comments

Comments
 (0)