Skip to content

Commit 525fbce

Browse files
committed
Fix copypaste mistakes in tests
1 parent 405e2a9 commit 525fbce

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

library/core/src/num/f128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ impl f128 {
12891289
/// assert_eq!((3.0f128).clamp_max(1.0), 1.0);
12901290
/// assert_eq!((0.0f128).clamp_max(1.0), 0.0);
12911291
/// assert_eq!((f128::NAN).clamp_max(1.0), 1.0);
1292-
/// assert_eq!((0.0f128).clamp_min(f128::NAN), 0.0);
1292+
/// assert_eq!((0.0f128).clamp_max(f128::NAN), 0.0);
12931293
/// ```
12941294
#[inline]
12951295
#[unstable(feature = "f128", issue = "116909")]

library/core/src/num/f16.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ impl f16 {
12671267
/// assert_eq!((3.0f16).clamp_max(1.0), 1.0);
12681268
/// assert_eq!((0.0f16).clamp_max(1.0), 0.0);
12691269
/// assert_eq!((f16::NAN).clamp_max(1.0), 1.0);
1270-
/// assert_eq!((0.0f16).clamp_min(f16::NAN), 0.0);
1270+
/// assert_eq!((0.0f16).clamp_max(f16::NAN), 0.0);
12711271
/// ```
12721272
#[inline]
12731273
#[unstable(feature = "f16", issue = "116909")]

library/core/src/num/f32.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,10 +1441,10 @@ impl f32 {
14411441
///
14421442
/// ```
14431443
/// #![feature(clamp_min_max)]
1444-
/// assert_eq!((-3.0f32).clamp_min(-2.0), -2.0);
1445-
/// assert_eq!((0.0f32).clamp_min(-2.0), 0.0);
1446-
/// assert_eq!((f32::NAN).clamp_min(-2.0), -2.0);
1447-
/// assert_eq!((0.0f32).clamp_min(f32::NAN), 0.0);
1444+
/// assert_eq!((3.0f32).clamp_max(1.0), 1.0);
1445+
/// assert_eq!((0.0f32).clamp_max(1.0), 0.0);
1446+
/// assert_eq!((f32::NAN).clamp_max(1.0), 1.0);
1447+
/// assert_eq!((0.0f32).clamp_max(f32::NAN), 0.0);
14481448
/// ```
14491449
#[must_use = "method returns a new number and does not mutate the original value"]
14501450
#[unstable(feature = "clamp_min_max", issue = "147781")]

library/core/src/num/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ impl f64 {
14421442
/// assert_eq!((3.0f64).clamp_max(1.0), 1.0);
14431443
/// assert_eq!((0.0f64).clamp_max(1.0), 0.0);
14441444
/// assert_eq!((f64::NAN).clamp_max(1.0), 1.0);
1445-
/// assert_eq!((0.0f64).clamp_min(f64::NAN), 0.0);
1445+
/// assert_eq!((0.0f64).clamp_max(f64::NAN), 0.0);
14461446
/// ```
14471447
#[must_use = "method returns a new number and does not mutate the original value"]
14481448
#[unstable(feature = "clamp_min_max", issue = "147781")]

0 commit comments

Comments
 (0)