Skip to content

Commit 3c145b7

Browse files
committed
Merge pull request #3687 from eksperimental/correct_arity
Add/Correct arity in functions that are not being linked in html docs
2 parents 1660d7d + 8f0175f commit 3c145b7

File tree

13 files changed

+25
-24
lines changed

13 files changed

+25
-24
lines changed

lib/elixir/lib/exception.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Exception do
44
55
Note that stacktraces in Elixir are updated on throw,
66
errors and exits. For example, at any given moment,
7-
`System.stacktrace` will return the stacktrace for the
7+
`System.stacktrace/0` will return the stacktrace for the
88
last throw/error/exit that occurred in the current process.
99
1010
Do not rely on the particular format returned by the `format`

lib/elixir/lib/gen_event.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule GenEvent do
3636
end
3737
end
3838
39-
{:ok, pid} = GenEvent.start_link()
39+
{:ok, pid} = GenEvent.start_link([])
4040
4141
GenEvent.add_handler(pid, LoggerHandler, [])
4242
#=> :ok
@@ -53,7 +53,7 @@ defmodule GenEvent do
5353
GenEvent.call(pid, LoggerHandler, :messages)
5454
#=> []
5555
56-
We start a new event manager by calling `GenEvent.start_link/0`.
56+
We start a new event manager by calling `GenEvent.start_link/1`.
5757
Notifications can be sent to the event manager which will then
5858
invoke `handle_event/2` for each registered handler.
5959
@@ -89,7 +89,7 @@ defmodule GenEvent do
8989
- `{:stop, reason}` - monitored process terminated (for monitored handlers)
9090
- `:remove_handler` - handler is being removed
9191
- `{:error, term}` - handler crashed or returned a bad value
92-
- `term` - any term passed to functions like `GenEvent.remove_handler/2`
92+
- `term` - any term passed to functions like `GenEvent.remove_handler/3`
9393
9494
* `code_change(old_vsn, state, extra)` - called when the application
9595
code is being upgraded live (hot code swapping).
@@ -251,7 +251,7 @@ defmodule GenEvent do
251251
Invoked when the server is about to exit. It should do any cleanup required.
252252
253253
`reason` is removal reason and `state` is the current state of the handler.
254-
The return value is returned to `GenEvent.remove_handler/2` or ignored if
254+
The return value is returned to `GenEvent.remove_handler/3` or ignored if
255255
removing for another reason.
256256
257257
`reason` is one of:
@@ -261,7 +261,7 @@ defmodule GenEvent do
261261
- `:remove_handler` - handler is being removed
262262
- `{:error, term}` - handler crashed or returned a bad value and an error is
263263
logged
264-
- `term` - any term passed to functions like `GenEvent.remove_handler/2`
264+
- `term` - any term passed to functions like `GenEvent.remove_handler/3`
265265
266266
If part of a supervision tree, a `GenEvent`'s `Supervisor` will send an exit
267267
signal when shutting it down. The exit signal is based on the shutdown

lib/elixir/lib/io.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule IO do
2222
Elixir provides two shorcuts:
2323
2424
* `:stdio` - a shortcut for `:standard_io`, which maps to
25-
the current `Process.group_leader` in Erlang
25+
the current `Process.group_leader/0` in Erlang
2626
2727
* `:stderr` - a shortcut for the named process `:standard_error`
2828
provided in Erlang

lib/elixir/lib/io/ansi.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ defmodule IO.ANSI do
141141
142142
The named sequences are represented by atoms.
143143
144-
It will also append an `IO.ANSI.reset` to the chardata when a conversion is
144+
It will also append an `IO.ANSI.reset/0` to the chardata when a conversion is
145145
performed. If you don't want this behaviour, use `format_fragment/2`.
146146
147147
An optional boolean parameter can be passed to enable or disable

lib/elixir/lib/kernel/special_forms.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@ defmodule Kernel.SpecialForms do
580580
Notice that calling `except` for a previously declared `import`
581581
simply filters the previously imported elements. For example:
582582
583-
import List, only: [flatten: 1, keyfind: 3]
583+
import List, only: [flatten: 1, keyfind: 4]
584584
import List, except: [flatten: 1]
585585
586-
After the two import calls above, only `List.keyfind/3` will be
586+
After the two import calls above, only `List.keyfind/4` will be
587587
imported.
588588
589589
## Underscore functions
@@ -1415,8 +1415,9 @@ defmodule Kernel.SpecialForms do
14151415
defmacro __aliases__(args)
14161416

14171417
@doc """
1418-
Calls the overriden function when overriding it with `defoverridable`.
1419-
See `Kernel.defoverridable` for more information and documentation.
1418+
Calls the overriden function when overriding it with `Kernel.defoverridable/1`.
1419+
1420+
See `Kernel.defoverridable/1` for more information and documentation.
14201421
"""
14211422
defmacro super(args)
14221423

lib/elixir/lib/macro.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ defmodule Macro do
117117
@doc """
118118
Applies the given function to the node metadata if it contains one.
119119
120-
This is often useful when used with `Macro.prewalk/1` to remove
120+
This is often useful when used with `Macro.prewalk/2` to remove
121121
information like lines and hygienic counters from the expression
122122
for either storage or comparison.
123123

lib/elixir/lib/module.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,13 @@ defmodule Module do
405405
406406
## Differences from `defmodule`
407407
408-
`Module.create` works similarly to `defmodule` and
408+
`Module.create/3` works similarly to `defmodule` and
409409
return the same results. While one could also use
410410
`defmodule` to define modules dynamically, this
411411
function is preferred when the module body is given
412412
by a quoted expression.
413413
414-
Another important distinction is that `Module.create`
414+
Another important distinction is that `Module.create/3`
415415
allows you to control the environment variables used
416416
when defining the module, while `defmodule` automatically
417417
shares the same environment.

lib/elixir/lib/node.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ defmodule Node do
239239
@doc """
240240
Sets the magic cookie of `node` to the atom `cookie`.
241241
242-
The default node is `Node.self`, the local node. If `node` is the local node,
242+
The default node is `Node.self/0`, the local node. If `node` is the local node,
243243
the function also sets the cookie of all other unknown nodes to `cookie`.
244244
245245
This function will raise `FunctionClauseError` if the given `node` is not alive.

lib/elixir/lib/task.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ defmodule Task do
7474
7575
By default, most supervision strategies will try to restart
7676
a worker after it exits regardless of reason. If you design the
77-
task to terminate normally (as in the example with `IO.puts` above),
77+
task to terminate normally (as in the example with `IO.puts/2` above),
7878
consider passing `restart: :transient` in the options to `worker/3`.
7979
8080
## Dynamically supervised tasks

lib/iex/lib/iex.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ defmodule IEx do
353353
## Examples
354354
355355
Let's suppose you want to investigate what is happening
356-
with some particular function. By invoking `IEx.pry` from
356+
with some particular function. By invoking `IEx.pry/1` from
357357
the function, IEx will allow you to access its binding
358358
(variables), verify its lexical information and access
359359
the process information. Let's see an example:
@@ -378,7 +378,7 @@ defmodule IEx do
378378
2
379379
3
380380
381-
Keep in mind that `IEx.pry` runs in the caller process,
381+
Keep in mind that `IEx.pry/1` runs in the caller process,
382382
blocking the caller during the evaluation cycle. The caller
383383
process can be freed by calling `respawn`, which starts a
384384
new IEx evaluation cycle, letting this one go:

0 commit comments

Comments
 (0)