Skip to content

Commit 1b73c49

Browse files
authored
Fix spec for to_timeout/1 (#13755)
1 parent 8f24d45 commit 1b73c49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/elixir/lib/kernel.ex

+2-3
Original file line numberDiff line numberDiff line change
@@ -6211,9 +6211,8 @@ defmodule Kernel do
62116211
62126212
"""
62136213
@doc since: "1.17.0"
6214-
@spec to_timeout([component, ...] | timeout() | Duration.t()) :: timeout()
6215-
when component: [{unit, non_neg_integer()}, ...],
6216-
unit: :week | :day | :hour | :minute | :second | :millisecond
6214+
@spec to_timeout([{unit, non_neg_integer()}] | timeout() | Duration.t()) :: timeout()
6215+
when unit: :week | :day | :hour | :minute | :second | :millisecond
62176216
def to_timeout(duration)
62186217

62196218
def to_timeout(:infinity), do: :infinity

0 commit comments

Comments
 (0)