diff --git a/lib/stdlib/src/timer.erl b/lib/stdlib/src/timer.erl index e8c1a78e9c48..88ca74a60111 100644 --- a/lib/stdlib/src/timer.erl +++ b/lib/stdlib/src/timer.erl @@ -539,7 +539,7 @@ Naturally, this function does _not_ return immediately. > values are accepted. """. -spec sleep(Time) -> 'ok' - when Time :: timeout(). + when Time :: time() | 'infinity'. sleep(T) when is_integer(T), T > ?MAX_RECEIVE_AFTER ->