Apply documentation suggestions from @est31

Co-authored-by: est31 <est31@users.noreply.github.com>
This commit is contained in:
Urgau 2021-11-20 23:05:30 +01:00 committed by GitHub
parent 2bad893900
commit e2ec3b1dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -674,7 +674,7 @@ impl f32 {
/// Returns the maximum of the two numbers.
///
/// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs.
/// This matchs the behavior of libms fmin.
/// This matches the behavior of libms fmin.
///
/// ```
/// let x = 1.0f32;
@ -693,7 +693,7 @@ impl f32 {
/// Returns the minimum of the two numbers.
///
/// Follows the IEEE-754 2008 semantics for minNum, except for handling of signaling NaNs.
/// This matchs the behavior of libms fmin.
/// This matches the behavior of libms fmin.
///
/// ```
/// let x = 1.0f32;
@ -725,7 +725,7 @@ impl f32 {
///
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the greater
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
/// Note that this follow the semantics specified in IEEE 754-2019.
/// Note that this follows the semantics specified in IEEE 754-2019.
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
#[inline]
pub fn maximum(self, other: f32) -> f32 {
@ -756,7 +756,7 @@ impl f32 {
///
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the lesser
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
/// Note that this follow the semantics specified in IEEE 754-2019.
/// Note that this follows the semantics specified in IEEE 754-2019.
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
#[inline]
pub fn minimum(self, other: f32) -> f32 {

View file

@ -690,7 +690,7 @@ impl f64 {
/// Returns the maximum of the two numbers.
///
/// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs.
/// This matchs the behavior of libms fmin.
/// This matches the behavior of libms fmin.
///
/// ```
/// let x = 1.0_f64;
@ -709,7 +709,7 @@ impl f64 {
/// Returns the minimum of the two numbers.
///
/// Follows the IEEE-754 2008 semantics for minNum, except for handling of signaling NaNs.
/// This matchs the behavior of libms fmin.
/// This matches the behavior of libms fmin.
///
/// ```
/// let x = 1.0_f64;
@ -741,7 +741,7 @@ impl f64 {
///
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the greater
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
/// Note that this follow the semantics specified in IEEE 754-2019.
/// Note that this follows the semantics specified in IEEE 754-2019.
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
#[inline]
pub fn maximum(self, other: f64) -> f64 {
@ -772,7 +772,7 @@ impl f64 {
///
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the lesser
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
/// Note that this follow the semantics specified in IEEE 754-2019.
/// Note that this follows the semantics specified in IEEE 754-2019.
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
#[inline]
pub fn minimum(self, other: f64) -> f64 {