Skip to content

Commit 63376bb

Browse files
authored
Rollup merge of rust-lang#93026 - klensy:f-typo, r=scottmcm
fix typo in `max` description for f32/f64
2 parents 73988b6 + 51cd00c commit 63376bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl f32 {
675675
/// Returns the maximum of the two numbers.
676676
///
677677
/// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs.
678-
/// This matches the behavior of libm’s fmin.
678+
/// This matches the behavior of libm’s fmax.
679679
///
680680
/// ```
681681
/// let x = 1.0f32;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ impl f64 {
691691
/// Returns the maximum of the two numbers.
692692
///
693693
/// Follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs.
694-
/// This matches the behavior of libm’s fmin.
694+
/// This matches the behavior of libm’s fmax.
695695
///
696696
/// ```
697697
/// let x = 1.0_f64;

0 commit comments

Comments
 (0)