Skip to content

Commit 5a8ba81

Browse files
Add spec for DynamicSupervisor.child_spec/1 (#14729)
1 parent 06fc222 commit 5a8ba81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/elixir/lib/dynamic_supervisor.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ defmodule DynamicSupervisor do
206206
See `Supervisor` for more information about child specifications.
207207
"""
208208
@doc since: "1.6.1"
209+
@spec child_spec([init_option() | GenServer.option()]) :: Supervisor.child_spec()
209210
def child_spec(options) when is_list(options) do
210211
id =
211212
case Keyword.get(options, :name, DynamicSupervisor) do

0 commit comments

Comments
 (0)