From f535aed977d7410be491aa284628b7b91222fad1 Mon Sep 17 00:00:00 2001 From: Pyry Kontio Date: Mon, 2 May 2022 23:29:02 +0900 Subject: [PATCH] Fix nits --- core/src/num/f32.rs | 8 ++++---- core/src/num/f64.rs | 8 ++++---- std/src/f32.rs | 2 +- std/src/f64.rs | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/num/f32.rs b/core/src/num/f32.rs index e3d40b58a..74d337f1d 100644 --- a/core/src/num/f32.rs +++ b/core/src/num/f32.rs @@ -747,8 +747,8 @@ impl f32 { /// of the two numbers. For this operation, -0.0 is considered to be less than +0.0. /// Note that this follows the semantics specified in IEEE 754-2019. /// - /// Also note that "propagation" of NaNs here doesn't mean that the bitpattern of a NaN operand - /// is necessarily conserved; see [explanation of NaN as a special value](f32) for more info. + /// Also note that "propagation" of NaNs here doesn't necessarily mean that the bitpattern of a NaN + /// operand is conserved; see [explanation of NaN as a special value](f32) for more info. #[must_use = "this returns the result of the comparison, without modifying either input"] #[unstable(feature = "float_minimum_maximum", issue = "91079")] #[inline] @@ -782,8 +782,8 @@ impl f32 { /// of the two numbers. For this operation, -0.0 is considered to be less than +0.0. /// Note that this follows the semantics specified in IEEE 754-2019. /// - /// Also note that "propagation" of NaNs here doesn't mean that the bitpattern of a NaN operand - /// is necessarily conserved; see [explanation of NaN as a special value](f32) for more info. + /// Also note that "propagation" of NaNs here doesn't necessarily mean that the bitpattern of a NaN + /// operand is conserved; see [explanation of NaN as a special value](f32) for more info. #[must_use = "this returns the result of the comparison, without modifying either input"] #[unstable(feature = "float_minimum_maximum", issue = "91079")] #[inline] diff --git a/core/src/num/f64.rs b/core/src/num/f64.rs index 51ccf7e85..c8ce6f0e3 100644 --- a/core/src/num/f64.rs +++ b/core/src/num/f64.rs @@ -763,8 +763,8 @@ impl f64 { /// of the two numbers. For this operation, -0.0 is considered to be less than +0.0. /// Note that this follows the semantics specified in IEEE 754-2019. /// - /// Also note that "propagation" of NaNs here doesn't mean that the bitpattern of a NaN operand - /// is necessarily conserved; see [explanation of NaN as a special value](f32) for more info. + /// Also note that "propagation" of NaNs here doesn't necessarily mean that the bitpattern of a NaN + /// operand is conserved; see [explanation of NaN as a special value](f32) for more info. #[must_use = "this returns the result of the comparison, without modifying either input"] #[unstable(feature = "float_minimum_maximum", issue = "91079")] #[inline] @@ -798,8 +798,8 @@ impl f64 { /// of the two numbers. For this operation, -0.0 is considered to be less than +0.0. /// Note that this follows the semantics specified in IEEE 754-2019. /// - /// Also note that "propagation" of NaNs here doesn't mean that the bitpattern of a NaN operand - /// is necessarily conserved; see [explanation of NaN as a special value](f32) for more info. + /// Also note that "propagation" of NaNs here doesn't necessarily mean that the bitpattern of a NaN + /// operand is conserved; see [explanation of NaN as a special value](f32) for more info. #[must_use = "this returns the result of the comparison, without modifying either input"] #[unstable(feature = "float_minimum_maximum", issue = "91079")] #[inline] diff --git a/std/src/f32.rs b/std/src/f32.rs index 469db1b7c..4cf234a52 100644 --- a/std/src/f32.rs +++ b/std/src/f32.rs @@ -302,7 +302,7 @@ impl f32 { /// Raises a number to an integer power. /// /// Using this function is generally faster than using `powf`. - /// It might have different sequence of rounding operations than `powf`, + /// It might have a different sequence of rounding operations than `powf`, /// so the results are not guaranteed to agree. /// /// # Examples diff --git a/std/src/f64.rs b/std/src/f64.rs index a291a777e..d28bd386c 100644 --- a/std/src/f64.rs +++ b/std/src/f64.rs @@ -302,7 +302,7 @@ impl f64 { /// Raises a number to an integer power. /// /// Using this function is generally faster than using `powf`. - /// It might have different sequence of rounding operations than `powf`, + /// It might have a different sequence of rounding operations than `powf`, /// so the results are not guaranteed to agree. /// /// # Examples