Skip to content

Commit d1a3518

Browse files
committed
doc: minus (U+2212) instead of dash (U+002D) for negative infinity
1 parent 0de96d3 commit d1a3518

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libcore/num/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub const NAN: f32 = 0.0_f32 / 0.0_f32;
6262
/// Infinity (∞).
6363
#[stable(feature = "rust1", since = "1.0.0")]
6464
pub const INFINITY: f32 = 1.0_f32 / 0.0_f32;
65-
/// Negative infinity (-∞).
65+
/// Negative infinity (∞).
6666
#[stable(feature = "rust1", since = "1.0.0")]
6767
pub const NEG_INFINITY: f32 = -1.0_f32 / 0.0_f32;
6868

src/libcore/num/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub const NAN: f64 = 0.0_f64 / 0.0_f64;
6262
/// Infinity (∞).
6363
#[stable(feature = "rust1", since = "1.0.0")]
6464
pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
65-
/// Negative infinity (-∞).
65+
/// Negative infinity (∞).
6666
#[stable(feature = "rust1", since = "1.0.0")]
6767
pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
6868

0 commit comments

Comments
 (0)