Skip to content

Commit 63f4dab

Browse files
committed
Revert "Add NAN examples"
This reverts commit f74c5d2.
1 parent eafdad5 commit 63f4dab

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/libstd/f32.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,6 @@ impl f32 {
10891089
/// assert!((-3.0f32).clamp(-2.0f32, 1.0f32) == -2.0f32);
10901090
/// assert!((0.0f32).clamp(-2.0f32, 1.0f32) == 0.0f32);
10911091
/// assert!((2.0f32).clamp(-2.0f32, 1.0f32) == 1.0f32);
1092-
/// assert!((NAN).clamp(-2.0f32, 1.0f32) == NAN);
10931092
/// ```
10941093
#[unstable(feature = "clamp", issue = "44095")]
10951094
#[inline]

src/libstd/f64.rs

-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ impl f64 {
979979
/// assert!((-3.0f64).clamp(-2.0f64, 1.0f64) == -2.0f64);
980980
/// assert!((0.0f64).clamp(-2.0f64, 1.0f64) == 0.0f64);
981981
/// assert!((2.0f64).clamp(-2.0f64, 1.0f64) == 1.0f64);
982-
/// assert!((NAN).clamp(-2.0f64, 1.0f64) == NAN);
983982
/// ```
984983
#[unstable(feature = "clamp", issue = "44095")]
985984
#[inline]

0 commit comments

Comments
 (0)