Skip to content

Commit 15d3eea

Browse files
committed
Revert "Fix f64 examples"
This reverts commit 576426a.
1 parent 8b96167 commit 15d3eea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libstd/f64.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -971,17 +971,15 @@ impl f64 {
971971
}
972972

973973
/// Returns max if self is greater than max, and min if self is less than min.
974-
/// Otherwise this returns self. Panics if min > max, min is NaN, or max is NaN.
974+
/// Otherwise this returns self. Panics if min > max, min equals NaN, or max equals NaN.
975975
///
976976
/// # Examples
977977
///
978978
/// ```
979-
/// #![feature(clamp)]
980-
/// use std::f64::NAN;
981979
/// assert!((-3.0f64).clamp(-2.0f64, 1.0f64) == -2.0f64);
982980
/// assert!((0.0f64).clamp(-2.0f64, 1.0f64) == 0.0f64);
983981
/// assert!((2.0f64).clamp(-2.0f64, 1.0f64) == 1.0f64);
984-
/// assert!((NAN).clamp(-2.0f64, 1.0f64).is_nan());
982+
/// assert!((NAN).clamp(-2.0f64, 1.0f64) == NAN);
985983
/// ```
986984
#[unstable(feature = "clamp", issue = "44095")]
987985
#[inline]

0 commit comments

Comments
 (0)