Skip to content

Commit 7d18f74

Browse files
eksperimentaljosevalim
authored andcommitted
Clarify documentation in GenServer (#7860)
Since the documented function uses a "module" arg, it was not clear whether "module" referrer to the argument or to GenServer [ci skip]
1 parent 7c182d8 commit 7d18f74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir/lib/gen_server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ defmodule GenServer do
789789
## Options
790790
791791
* `:name` - used for name registration as described in the "Name
792-
registration" section of the module documentation
792+
registration" section in the documentation for `GenServer`
793793
794794
* `:timeout` - if present, the server is allowed to spend the given number of
795795
milliseconds initializing or it will be terminated and the start function

lib/elixir/lib/supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ defmodule Supervisor do
425425
Defaults to `5`.
426426
427427
* `:name` - a name to register the supervisor process. Supported values are
428-
explained in the "Name registration" section of the documentation of
428+
explained in the "Name registration" section in the documentation for
429429
`GenServer`. Optional.
430430
431431
### Strategies

0 commit comments

Comments
 (0)