diff --git a/lib/elixir/lib/calendar/time.ex b/lib/elixir/lib/calendar/time.ex index c2fa5f97bb..fd2ef3a84e 100644 --- a/lib/elixir/lib/calendar/time.ex +++ b/lib/elixir/lib/calendar/time.ex @@ -496,7 +496,7 @@ defmodule Time do """ @doc since: "1.11.0" - @spec to_seconds_after_midnight(Calendar.time()) :: {integer(), non_neg_integer()} + @spec to_seconds_after_midnight(Calendar.time()) :: {non_neg_integer(), non_neg_integer()} def to_seconds_after_midnight(%{microsecond: {microsecond, _precision}} = time) do iso_days = {0, to_day_fraction(time)} {Calendar.ISO.iso_days_to_unit(iso_days, :second), microsecond}