Skip to content

Commit 9ea950c

Browse files
RKushnirsabiwara
authored andcommitted
Macro anti-patterns: fix incorrect error message in code examples (#13259)
1 parent 7d100ff commit 9ea950c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/pages/anti-patterns/macro-anti-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule Routes do
2424
end
2525

2626
if not is_atom(handler) do
27-
raise ArgumentError, "route must be a module"
27+
raise ArgumentError, "handler must be a module"
2828
end
2929

3030
@store_route_for_compilation {route, handler}
@@ -51,7 +51,7 @@ defmodule Routes do
5151
end
5252

5353
if not is_atom(handler) do
54-
raise ArgumentError, "route must be a module"
54+
raise ArgumentError, "handler must be a module"
5555
end
5656

5757
Module.put_attribute(module, :store_route_for_compilation, {route, handler})

0 commit comments

Comments
 (0)