diff --git a/lib/elixir/lib/kernel.ex b/lib/elixir/lib/kernel.ex index 3cb671a1d5b..ccf39db2e88 100644 --- a/lib/elixir/lib/kernel.ex +++ b/lib/elixir/lib/kernel.ex @@ -6211,9 +6211,8 @@ defmodule Kernel do """ @doc since: "1.17.0" - @spec to_timeout([component, ...] | timeout() | Duration.t()) :: timeout() - when component: [{unit, non_neg_integer()}, ...], - unit: :week | :day | :hour | :minute | :second | :millisecond + @spec to_timeout([{unit, non_neg_integer()}] | timeout() | Duration.t()) :: timeout() + when unit: :week | :day | :hour | :minute | :second | :millisecond def to_timeout(duration) def to_timeout(:infinity), do: :infinity