Skip to content

Commit 429e3c9

Browse files
Update System.os_time/1 spec (#12561)
since #12558 it is also being called with :native as the time_unit
1 parent ae0b3a4 commit 429e3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/system.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ defmodule System do
13141314
This time may be adjusted forwards or backwards in time
13151315
with no limitation and is not monotonic.
13161316
"""
1317-
@spec os_time(time_unit) :: integer
1317+
@spec os_time(time_unit | :native) :: integer
13181318
@doc since: "1.3.0"
13191319
def os_time(unit) do
13201320
:os.system_time(normalize_time_unit(unit))

0 commit comments

Comments
 (0)