Skip to content

Commit 402a338

Browse files
Nagasaki45José Valim
authored andcommitted
Improve formatting of Supervisor documentation (#6416)
1 parent 1406d85 commit 402a338

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/elixir/lib/supervisor.ex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ defmodule Supervisor do
187187
`GenServer` with a shutdown limit of 10 seconds (10_000 miliseconds),
188188
one might do:
189189
190-
use GenServer, shutdown: 10000
190+
use GenServer, shutdown: 10_000
191191
192192
Let's understand what the `:shutdown` and `:restart` options control.
193193
@@ -333,14 +333,14 @@ defmodule Supervisor do
333333
The first argument given to `start_link/2` is a list of children which may
334334
be either:
335335
336-
* a module - such as `Stack`. In this case, it is equivalent to passing
337-
`{Stack, []}` (which means `Stack.child_spec/1` is invoked with an empty
338-
keywords list)
339-
* a tuple with a module as first element and the start argument as second -
340-
such as `{Stack, [:hello]}`. When such format is used, the supervisor
341-
will retrieve the child specification from the given module.
342-
* a map representing the child specification itself - such as the child
343-
specification map outlined in the previous section.
336+
* a module - such as `Stack`. In this case, it is equivalent to passing
337+
`{Stack, []}` (which means `Stack.child_spec/1` is invoked with an empty
338+
keywords list)
339+
* a tuple with a module as first element and the start argument as second -
340+
such as `{Stack, [:hello]}`. When such format is used, the supervisor
341+
will retrieve the child specification from the given module.
342+
* a map representing the child specification itself - such as the child
343+
specification map outlined in the previous section.
344344
345345
The second argument is a keyword list of options:
346346

0 commit comments

Comments
 (0)