summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEksperimental <eksperimental@users.noreply.github.com>2018-07-11 14:49:50 +0700
committerJosé Valim <jose.valim@gmail.com>2018-07-11 09:49:50 +0200
commit7d18f748be4ce466d254013600414f11e8ba26a0 (patch)
treebeb9dde838a813acdc6d808cd8dd27d920e89c88
parent7c182d86bb4acadfc6dcc4fea2e2fe353b1de171 (diff)
downloadelixir-7d18f748be4ce466d254013600414f11e8ba26a0.tar.gz
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]
-rw-r--r--lib/elixir/lib/gen_server.ex2
-rw-r--r--lib/elixir/lib/supervisor.ex2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/lib/gen_server.ex b/lib/elixir/lib/gen_server.ex
index b23d088da..bf2bbf713 100644
--- a/lib/elixir/lib/gen_server.ex
+++ b/lib/elixir/lib/gen_server.ex
@@ -789,7 +789,7 @@ defmodule GenServer do
## Options
* `:name` - used for name registration as described in the "Name
- registration" section of the module documentation
+ registration" section in the documentation for `GenServer`
* `:timeout` - if present, the server is allowed to spend the given number of
milliseconds initializing or it will be terminated and the start function
diff --git a/lib/elixir/lib/supervisor.ex b/lib/elixir/lib/supervisor.ex
index c8c51e16e..3380adab7 100644
--- a/lib/elixir/lib/supervisor.ex
+++ b/lib/elixir/lib/supervisor.ex
@@ -425,7 +425,7 @@ defmodule Supervisor do
Defaults to `5`.
* `:name` - a name to register the supervisor process. Supported values are
- explained in the "Name registration" section of the documentation of
+ explained in the "Name registration" section in the documentation for
`GenServer`. Optional.
### Strategies