Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions getting-started/meta/macros.markdown
Original file line numberDiff line numberDiff line change
Expand Up@@ -126,7 +126,7 @@ defmodule HygieneTest do
def go do
require Hygiene
a = 13
Hygiene.no_interference
Hygiene.no_interference()
a
end
end
Expand All@@ -148,7 +148,7 @@ defmodule HygieneTest do
def go do
require Hygiene
a = 13
Hygiene.interference
Hygiene.interference()
a
end
end
Expand All@@ -174,7 +174,7 @@ defmodule Sample do
end
end

Sample.quoted #=>{:x, [line: 3], Sample}
Sample.quoted() #=>{:x, [line: 3], Sample}
```

Notice that the third element in the quoted variable is the atom `Sample`, instead of `nil`, which marks the variable as coming from the `Sample` module. Therefore, Elixir considers these two variables as coming from different contexts and handles them accordingly.
Expand Down