We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b5a03 commit 72f5d91Copy full SHA for 72f5d91
src/libstd/f64.rs
@@ -892,7 +892,7 @@ impl f64 {
892
/// assert!((-3.0f64).clamp(-2.0f64, 1.0f64) == -2.0f64);
893
/// assert!((0.0f64).clamp(-2.0f64, 1.0f64) == 0.0f64);
894
/// assert!((2.0f64).clamp(-2.0f64, 1.0f64) == 1.0f64);
895
- /// assert!((std::f64::NAN).clamp(-2.0f32, 1.0f32).is_nan());
+ /// assert!((std::f64::NAN).clamp(-2.0f64, 1.0f64).is_nan());
896
/// ```
897
#[unstable(feature = "clamp", issue = "44095")]
898
#[inline]
0 commit comments