about summary refs log tree commit diff
path: root/src/libstd/num/num.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/num/num.rs')
-rw-r--r--src/libstd/num/num.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/num/num.rs b/src/libstd/num/num.rs
index d49759515b3..3097a8e138e 100644
--- a/src/libstd/num/num.rs
+++ b/src/libstd/num/num.rs
@@ -86,9 +86,9 @@ pub trait Signed: Num
 /// Returns the sign of the number.
 ///
 /// For float, f32, f64:
-/// - `1.0` if the number is positive, `+0.0` or `infinity`
-/// - `-1.0` if the number is negative, `-0.0` or `neg_infinity`
-/// - `NaN` if the number is `NaN`
+/// - `1.0` if the number is positive, `+0.0` or `INFINITY`
+/// - `-1.0` if the number is negative, `-0.0` or `NEG_INFINITY`
+/// - `NAN` if the number is `NAN`
 ///
 /// For int:
 /// - `0` if the number is zero