summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Łępicki <michallepicki@users.noreply.github.com>2023-05-12 19:27:29 +0200
committerGitHub <noreply@github.com>2023-05-12 19:27:29 +0200
commit429e3c93811ee522c81430735357ec457a395635 (patch)
tree97adf01c890ac67549dccbc8f532b8f8cacdacfd
parentae0b3a4fa08aedc08fa9a03e7714b6d1bbb82135 (diff)
downloadelixir-429e3c93811ee522c81430735357ec457a395635.tar.gz
Update System.os_time/1 spec (#12561)
since https://github.com/elixir-lang/elixir/pull/12558 it is also being called with :native as the time_unit
-rw-r--r--lib/elixir/lib/system.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/system.ex b/lib/elixir/lib/system.ex
index 09825c38f..d2b212808 100644
--- a/lib/elixir/lib/system.ex
+++ b/lib/elixir/lib/system.ex
@@ -1314,7 +1314,7 @@ defmodule System do
This time may be adjusted forwards or backwards in time
with no limitation and is not monotonic.
"""
- @spec os_time(time_unit) :: integer
+ @spec os_time(time_unit | :native) :: integer
@doc since: "1.3.0"
def os_time(unit) do
:os.system_time(normalize_time_unit(unit))