diff options
author | Ary Borenszweig <[email protected]> | 2013-10-16 15:00:28 -0300 |
---|---|---|
committer | Ary Borenszweig <[email protected]> | 2013-10-16 15:00:28 -0300 |
commit | d8fc186214f28c757d9ff06578f6042497d8bba5 (patch) | |
tree | 10165f1346a9521d3139d5f494ffd2380ca355bd /lib/stdlib/src/math.erl | |
parent | 73d1b4a1cc5ef1898b650fc74063ab28bc85bcbf (diff) | |
download | otp-d8fc186214f28c757d9ff06578f6042497d8bba5.tar.gz otp-d8fc186214f28c757d9ff06578f6042497d8bba5.tar.bz2 otp-d8fc186214f28c757d9ff06578f6042497d8bba5.zip |
Spec for atan2 should be atan2(Y, X), not atan2(X, Y)
Diffstat (limited to 'lib/stdlib/src/math.erl')
-rw-r--r-- | lib/stdlib/src/math.erl | 6 |
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). |