aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-11-07 14:22:58 +0100
committerFredrik Gustafsson <[email protected]>2013-11-07 14:22:58 +0100
commit942311c5c19c3689581d4c6c9b1b8049cb94122c (patch)
tree6c5527fe62f007fde6e99547e519e098e986bf5a /lib/stdlib
parentd8657d0bbdf4db7a018b9a614b472120a810689e (diff)
parentd8fc186214f28c757d9ff06578f6042497d8bba5 (diff)
downloadotp-942311c5c19c3689581d4c6c9b1b8049cb94122c.tar.gz
otp-942311c5c19c3689581d4c6c9b1b8049cb94122c.tar.bz2
otp-942311c5c19c3689581d4c6c9b1b8049cb94122c.zip
Merge branch 'asterite/atan2_spec/OTP-11465' into maint
* asterite/atan2_spec/OTP-11465: Spec for atan2 should be atan2(Y, X), not atan2(X, Y)
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/math.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/src/math.erl b/lib/stdlib/src/math.erl
index c3fb684ec3..98a70b1644 100644
--- a/lib/stdlib/src/math.erl
+++ b/lib/stdlib/src/math.erl
@@ -51,9 +51,9 @@ asinh(_) ->
atan(_) ->
erlang:nif_error(undef).
--spec atan2(X, Y) -> float() when
- X :: number(),
- Y :: number().
+-spec atan2(Y, X) -> float() when
+ Y :: number(),
+ X :: number().
atan2(_, _) ->
erlang:nif_error(undef).