aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-05-28 12:14:48 +0200
committerHans Bolinder <[email protected]>2018-05-28 15:26:35 +0200
commitd1e14ad7c6af8a522226107788f33e92589c6c05 (patch)
treeabc11db45200d6aae9ed9cdf0af7bb0984be1e25 /lib/stdlib
parent186d8be66dd3d8eef24935c69c05723e15d00047 (diff)
downloadotp-d1e14ad7c6af8a522226107788f33e92589c6c05.tar.gz
otp-d1e14ad7c6af8a522226107788f33e92589c6c05.tar.bz2
otp-d1e14ad7c6af8a522226107788f33e92589c6c05.zip
stdlib: Improve a contract
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/array.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/array.erl b/lib/stdlib/src/array.erl
index a237eaa489..939b1fb488 100644
--- a/lib/stdlib/src/array.erl
+++ b/lib/stdlib/src/array.erl
@@ -290,7 +290,7 @@ new(Size, Fixed, Default) ->
end,
#array{size = Size, max = M, default = Default, elements = E}.
--spec find_max(integer(), integer()) -> integer().
+-spec find_max(integer(), non_neg_integer()) -> non_neg_integer().
find_max(I, M) when I >= M ->
find_max(I, ?extend(M));