diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-11 22:21:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-11 22:21:03 +0200 |
| commit | 6a8ac8b9752470ce2a807813ffa85c70305837ce (patch) | |
| tree | 38f7a63ce4e5909face30f38f7f10b2d3dd07e5f /src | |
| parent | d9c3110ae84919d43004561490d50fac58f36299 (diff) | |
| parent | 0ceacd022c326dadfc65e5cffcde28449c3d735a (diff) | |
| download | rust-6a8ac8b9752470ce2a807813ffa85c70305837ce.tar.gz rust-6a8ac8b9752470ce2a807813ffa85c70305837ce.zip | |
Rollup merge of #72072 - tspiteri:minus-inf, r=Dylan-DPC
doc: minus (U+2212) instead of dash (U+002D) for negative infinity Like #67430, for the new associated constants.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/num/f32.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 2 |
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; |
