Skip to content

Commit 960bf01

Browse files
committed
Rename varify to to_var
1 parent 0acbb15 commit 960bf01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/elixir/lib/protocol.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,9 @@ defmodule Protocol do
280280
type_args = :lists.map(fn _ -> quote(do: term) end, :lists.seq(2, arity))
281281
type_args = [quote(do: t) | type_args]
282282

283-
convert_variables = fn pos ->
284-
Macro.var(String.to_atom("arg" <> Integer.to_string(pos)), __MODULE__)
285-
end
283+
to_var = fn pos -> Macro.var(String.to_atom("arg" <> Integer.to_string(pos)), __MODULE__) end
286284

287-
call_args = :lists.map(convert_variables, :lists.seq(2, arity))
285+
call_args = :lists.map(to_var, :lists.seq(2, arity))
288286
call_args = [quote(do: term) | call_args]
289287

290288
quote generated: true do

0 commit comments

Comments
 (0)