Skip to content

Commit bb61b95

Browse files
fuelenjosevalim
authored andcommitted
Fix spec for to_timeout/1 (#13755)
1 parent 1e126e8 commit bb61b95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6197,9 +6197,8 @@ defmodule Kernel do
61976197
61986198
"""
61996199
@doc since: "1.17.0"
6200-
@spec to_timeout([component, ...] | timeout() | Duration.t()) :: timeout()
6201-
when component: [{unit, non_neg_integer()}, ...],
6202-
unit: :week | :day | :hour | :minute | :second | :millisecond
6200+
@spec to_timeout([{unit, non_neg_integer()}] | timeout() | Duration.t()) :: timeout()
6201+
when unit: :week | :day | :hour | :minute | :second | :millisecond
62036202
def to_timeout(duration)
62046203

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

0 commit comments

Comments
 (0)