Skip to content

Commit

Permalink
Apply documentation suggestions from @est31
Browse files Browse the repository at this point in the history
Co-authored-by: est31 <est31@users.noreply.github.com>
  • Loading branch information
Urgau and est31 authored Nov 20, 2021
1 parent 2bad893 commit e2ec3b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions library/core/src/num/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 match’s the behavior of libm’s fmin.
/// This matches the behavior of libm’s fmin.
///
/// ```
/// let x = 1.0f32;
Expand All @@ -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 match’s the behavior of libm’s fmin.
/// This matches the behavior of libm’s fmin.
///
/// ```
/// let x = 1.0f32;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions library/core/src/num/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 match’s the behavior of libm’s fmin.
/// This matches the behavior of libm’s fmin.
///
/// ```
/// let x = 1.0_f64;
Expand All @@ -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 match’s the behavior of libm’s fmin.
/// This matches the behavior of libm’s fmin.
///
/// ```
/// let x = 1.0_f64;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e2ec3b1

Please sign in to comment.