about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2020-05-10 11:24:06 +0200
committerTrevor Spiteri <tspiteri@ieee.org>2020-05-10 11:24:06 +0200
commit0ceacd022c326dadfc65e5cffcde28449c3d735a (patch)
treebf7d1b7f1fe3ea2a0aec8a1cd670ade06e22c05b /src
parentb3269536d0a883caa0904cf6589aa1310ff70b5e (diff)
downloadrust-0ceacd022c326dadfc65e5cffcde28449c3d735a.tar.gz
rust-0ceacd022c326dadfc65e5cffcde28449c3d735a.zip
doc: minus (U+2212) instead of dash (U+002D) for negative infinity
Diffstat (limited to 'src')
-rw-r--r--src/libcore/num/f32.rs2
-rw-r--r--src/libcore/num/f64.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs
index 4483940c9a7..434569020d2 100644
--- a/src/libcore/num/f32.rs
+++ b/src/libcore/num/f32.rs
@@ -367,7 +367,7 @@ impl f32 {
     /// Infinity (∞).
     #[stable(feature = "assoc_int_consts", since = "1.43.0")]
     pub const INFINITY: f32 = 1.0_f32 / 0.0_f32;
-    /// Negative infinity (-∞).
+    /// Negative infinity (−∞).
     #[stable(feature = "assoc_int_consts", since = "1.43.0")]
     pub const NEG_INFINITY: f32 = -1.0_f32 / 0.0_f32;
 
diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs
index df45e588369..6476ddb4541 100644
--- a/src/libcore/num/f64.rs
+++ b/src/libcore/num/f64.rs
@@ -366,7 +366,7 @@ impl f64 {
     /// Infinity (∞).
     #[stable(feature = "assoc_int_consts", since = "1.43.0")]
     pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
-    /// Negative infinity (-∞).
+    /// Negative infinity (−∞).
     #[stable(feature = "assoc_int_consts", since = "1.43.0")]
     pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;