We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a9d55 commit 74933b0Copy full SHA for 74933b0
lib/elixir/lib/kernel.ex
@@ -214,7 +214,7 @@ defmodule Kernel do
214
end
215
216
@doc """
217
- Invokes the given function `fun` from `module` with the list of
+ Invokes the given function from `module` with the list of
218
arguments `args`.
219
220
`apply/3` is used to invoke functions where the module, function
@@ -229,9 +229,9 @@ defmodule Kernel do
229
[3, 2, 1]
230
231
"""
232
- @spec apply(module, atom, [any]) :: any
233
- def apply(module, fun, args) do
234
- :erlang.apply(module, fun, args)
+ @spec apply(module, function_name :: atom, [any]) :: any
+ def apply(module, function_name, args) do
+ :erlang.apply(module, function_name, args)
235
236
237
0 commit comments