Skip to content

Commit e746c04

Browse files
authored
Refine Time.to_seconds_after_midnight/1 return type (#15570)
1 parent 4e840bc commit e746c04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/elixir/lib/calendar/time.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ defmodule Time do
496496
497497
"""
498498
@doc since: "1.11.0"
499-
@spec to_seconds_after_midnight(Calendar.time()) :: {integer(), non_neg_integer()}
499+
@spec to_seconds_after_midnight(Calendar.time()) :: {non_neg_integer(), non_neg_integer()}
500500
def to_seconds_after_midnight(%{microsecond: {microsecond, _precision}} = time) do
501501
iso_days = {0, to_day_fraction(time)}
502502
{Calendar.ISO.iso_days_to_unit(iso_days, :second), microsecond}

0 commit comments

Comments
 (0)