mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Fix f64 test
This commit is contained in:
+1
-1
@@ -892,7 +892,7 @@ pub fn atanh(self) -> f64 {
|
||||
/// assert!((-3.0f64).clamp(-2.0f64, 1.0f64) == -2.0f64);
|
||||
/// assert!((0.0f64).clamp(-2.0f64, 1.0f64) == 0.0f64);
|
||||
/// assert!((2.0f64).clamp(-2.0f64, 1.0f64) == 1.0f64);
|
||||
/// assert!((std::f64::NAN).clamp(-2.0f32, 1.0f32).is_nan());
|
||||
/// assert!((std::f64::NAN).clamp(-2.0f64, 1.0f64).is_nan());
|
||||
/// ```
|
||||
#[unstable(feature = "clamp", issue = "44095")]
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user