Skip to content

Commit 5f20a94

Browse files
committed
expand_literal -> expand_literals
1 parent fd97c2f commit 5f20a94

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/elixir/lib/application.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ defmodule Application do
532532
raise "Application.compile_env/3 cannot be called inside functions, only in the module body"
533533
end
534534

535-
key_or_path = Macro.expand_literal(key_or_path, %{__CALLER__ | function: {:__info__, 1}})
535+
key_or_path = Macro.expand_literals(key_or_path, %{__CALLER__ | function: {:__info__, 1}})
536536

537537
quote do
538538
Application.compile_env(__ENV__, unquote(app), unquote(key_or_path), unquote(default))
@@ -572,7 +572,7 @@ defmodule Application do
572572
raise "Application.compile_env!/2 cannot be called inside functions, only in the module body"
573573
end
574574

575-
key_or_path = Macro.expand_literal(key_or_path, %{__CALLER__ | function: {:__info__, 1}})
575+
key_or_path = Macro.expand_literals(key_or_path, %{__CALLER__ | function: {:__info__, 1}})
576576

577577
quote do
578578
Application.compile_env!(__ENV__, unquote(app), unquote(key_or_path))

lib/elixir/lib/kernel.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5744,7 +5744,7 @@ defmodule Kernel do
57445744
"""
57455745
defmacro defdelegate(funs, opts) do
57465746
funs = Macro.escape(funs, unquote: true)
5747-
opts = Macro.expand_literal(opts, %{__CALLER__ | function: {:__info__, 1}})
5747+
opts = Macro.expand_literals(opts, %{__CALLER__ | function: {:__info__, 1}})
57485748

57495749
quote bind_quoted: [funs: funs, opts: opts] do
57505750
target = Kernel.Utils.defdelegate_all(funs, opts, __ENV__)

lib/elixir/lib/protocol.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ defmodule Protocol do
931931
raise ArgumentError, "defimpl/3 expects a :for option when declared outside a module"
932932
end)
933933

934-
for = Macro.expand_literal(for, %{env | module: Kernel, function: {:defimpl, 3}})
934+
for = Macro.expand_literals(for, %{env | module: Kernel, function: {:defimpl, 3}})
935935

936936
case opts do
937937
[] -> raise ArgumentError, "defimpl expects a do-end block"

0 commit comments

Comments
 (0)