Skip to content

Commit 98a79dc

Browse files
committed
Fix spec for which_children, closes #11005
1 parent 2944479 commit 98a79dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir/lib/dynamic_supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ defmodule DynamicSupervisor do
419419
@doc since: "1.6.0"
420420
@spec which_children(Supervisor.supervisor()) :: [
421421
# module() | :dynamic here because :supervisor.modules() is not exported
422-
{:undefined, pid | :restarting, :worker | :supervisor, module() | :dynamic}
422+
{:undefined, pid | :restarting, :worker | :supervisor, [module()] | :dynamic}
423423
]
424424
def which_children(supervisor) do
425425
call(supervisor, :which_children)

lib/elixir/lib/supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ defmodule Supervisor do
930930
"""
931931
@spec which_children(supervisor) :: [
932932
# inlining module() | :dynamic here because :supervisor.modules() is not exported
933-
{term() | :undefined, child | :restarting, :worker | :supervisor, module() | :dynamic}
933+
{term() | :undefined, child | :restarting, :worker | :supervisor, [module()] | :dynamic}
934934
]
935935
def which_children(supervisor) do
936936
call(supervisor, :which_children)

0 commit comments

Comments
 (0)