diff options
author | aweagel <aweagel@users.noreply.github.com> | 2019-09-28 03:02:59 -0600 |
---|---|---|
committer | Andrea Leopardi <an.leopardi@gmail.com> | 2019-09-28 12:02:59 +0300 |
commit | 5120faa198d470c424f2322677e4fd68f40a363f (patch) | |
tree | e7433a1f6cef52181a6c5a3f9bee238f584e6268 | |
parent | d199a18075bef37e5184afa17a34c756e4013cdd (diff) | |
download | elixir-5120faa198d470c424f2322677e4fd68f40a363f.tar.gz |
Fix type details in the child spec documentation (#9371)
[ci skip]
-rw-r--r-- | lib/elixir/lib/supervisor.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/elixir/lib/supervisor.ex b/lib/elixir/lib/supervisor.ex index d56fa2bd8..ea6626993 100644 --- a/lib/elixir/lib/supervisor.ex +++ b/lib/elixir/lib/supervisor.ex @@ -123,9 +123,9 @@ defmodule Supervisor do should be restarted (see the "Restart values" section below). This key is optional and defaults to `:permanent`. - * `:shutdown` - an atom that defines how a child process should be - terminated (see the "Shutdown values" section below). This key - is optional and defaults to `5000` if the type is `:worker` or + * `:shutdown` - an integer or atom that defines how a child process should + be terminated (see the "Shutdown values" section below). This key + is optional and defaults to `5_000` if the type is `:worker` or `:infinity` if the type is `:supervisor`. * `:type` - specifies that the child process is a `:worker` or a |