Skip to content

Commit c80d215

Browse files
committed
Fix stacktrace in Module.get_attribute example
Closes #2522.
1 parent 3ee9d5d commit c80d215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/module.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ defmodule Module do
768768
769769
Expands to:
770770
771-
Module.get_attribute(__MODULE__, :foo, true)
771+
Module.get_attribute(__MODULE__, :foo, [{Module, :func, 0, [file: "module.ex", line: 1]}])
772772
773773
Notice the third argument may be given to indicate a stacktrace
774774
to be emitted when the attribute was not previously defined.

0 commit comments

Comments
 (0)