mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-08 04:56:58 +00:00
Apply documentation suggestions from @est31
Co-authored-by: est31 <est31@users.noreply.github.com>
This commit is contained in:
parent
2bad893900
commit
e2ec3b1dd7
@ -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;
|
||||
@ -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;
|
||||
@ -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 {
|
||||
|
@ -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;
|
||||
@ -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;
|
||||
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user