Skip to content

Commit 0ceacd0

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

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
@@ -367,7 +367,7 @@ impl f32 {
367367
/// Infinity (∞).
368368
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
369369
pub const INFINITY: f32 = 1.0_f32 / 0.0_f32;
370-
/// Negative infinity (-∞).
370+
/// Negative infinity (∞).
371371
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
372372
pub const NEG_INFINITY: f32 = -1.0_f32 / 0.0_f32;
373373

src/libcore/num/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ impl f64 {
366366
/// Infinity (∞).
367367
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
368368
pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
369-
/// Negative infinity (-∞).
369+
/// Negative infinity (∞).
370370
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
371371
pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
372372

0 commit comments

Comments
 (0)