Skip to content

Commit e2ec3b1

Browse files
Urgauest31
andauthored
Apply documentation suggestions from @est31
Co-authored-by: est31 <est31@users.noreply.github.com>
1 parent 2bad893 commit e2ec3b1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: library/core/src/num/f32.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ impl f32 {
674674
/// Returns the maximum of the two numbers.
675675
///
676676
/// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs.
677-
/// This match’s the behavior of libm’s fmin.
677+
/// This matches the behavior of libm’s fmin.
678678
///
679679
/// ```
680680
/// let x = 1.0f32;
@@ -693,7 +693,7 @@ impl f32 {
693693
/// Returns the minimum of the two numbers.
694694
///
695695
/// Follows the IEEE-754 2008 semantics for minNum, except for handling of signaling NaNs.
696-
/// This match’s the behavior of libm’s fmin.
696+
/// This matches the behavior of libm’s fmin.
697697
///
698698
/// ```
699699
/// let x = 1.0f32;
@@ -725,7 +725,7 @@ impl f32 {
725725
///
726726
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the greater
727727
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
728-
/// Note that this follow the semantics specified in IEEE 754-2019.
728+
/// Note that this follows the semantics specified in IEEE 754-2019.
729729
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
730730
#[inline]
731731
pub fn maximum(self, other: f32) -> f32 {
@@ -756,7 +756,7 @@ impl f32 {
756756
///
757757
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the lesser
758758
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
759-
/// Note that this follow the semantics specified in IEEE 754-2019.
759+
/// Note that this follows the semantics specified in IEEE 754-2019.
760760
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
761761
#[inline]
762762
pub fn minimum(self, other: f32) -> f32 {

Diff for: library/core/src/num/f64.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ impl f64 {
690690
/// Returns the maximum of the two numbers.
691691
///
692692
/// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs.
693-
/// This match’s the behavior of libm’s fmin.
693+
/// This matches the behavior of libm’s fmin.
694694
///
695695
/// ```
696696
/// let x = 1.0_f64;
@@ -709,7 +709,7 @@ impl f64 {
709709
/// Returns the minimum of the two numbers.
710710
///
711711
/// Follows the IEEE-754 2008 semantics for minNum, except for handling of signaling NaNs.
712-
/// This match’s the behavior of libm’s fmin.
712+
/// This matches the behavior of libm’s fmin.
713713
///
714714
/// ```
715715
/// let x = 1.0_f64;
@@ -741,7 +741,7 @@ impl f64 {
741741
///
742742
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the greater
743743
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
744-
/// Note that this follow the semantics specified in IEEE 754-2019.
744+
/// Note that this follows the semantics specified in IEEE 754-2019.
745745
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
746746
#[inline]
747747
pub fn maximum(self, other: f64) -> f64 {
@@ -772,7 +772,7 @@ impl f64 {
772772
///
773773
/// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the lesser
774774
/// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
775-
/// Note that this follow the semantics specified in IEEE 754-2019.
775+
/// Note that this follows the semantics specified in IEEE 754-2019.
776776
#[unstable(feature = "float_minimum_maximum", issue = "91079")]
777777
#[inline]
778778
pub fn minimum(self, other: f64) -> f64 {

0 commit comments

Comments
 (0)