Skip to content

Commit

Permalink
Clarify comment in the supervisor example included in the Supervisor …
Browse files Browse the repository at this point in the history
…moduledoc. (elixir-lang#5041)
  • Loading branch information
Stratus3D authored and josevalim committed Jul 20, 2016
1 parent ad3c7c6 commit c6a2572
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/elixir/lib/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ defmodule Supervisor do
import Supervisor.Spec
# Supervise the Stack server which will be started with
# a single argument [:hello] and the default registered
# name of MyStack.
# two arguments. The initial stack, [:hello], and a
# keyword list containing the GenServer options that
# set the registered name of the server to MyStack.
children = [
worker(Stack, [[:hello], [name: MyStack]])
]
Expand Down

0 comments on commit c6a2572

Please sign in to comment.