mirror of https://github.com/rust-lang/rust.git
parent
eafdad511f
commit
63f4dab0f5
|
@ -1089,7 +1089,6 @@ impl f32 {
|
|||
/// assert!((-3.0f32).clamp(-2.0f32, 1.0f32) == -2.0f32);
|
||||
/// assert!((0.0f32).clamp(-2.0f32, 1.0f32) == 0.0f32);
|
||||
/// assert!((2.0f32).clamp(-2.0f32, 1.0f32) == 1.0f32);
|
||||
/// assert!((NAN).clamp(-2.0f32, 1.0f32) == NAN);
|
||||
/// ```
|
||||
#[unstable(feature = "clamp", issue = "44095")]
|
||||
#[inline]
|
||||
|
|
|
@ -979,7 +979,6 @@ impl 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!((NAN).clamp(-2.0f64, 1.0f64) == NAN);
|
||||
/// ```
|
||||
#[unstable(feature = "clamp", issue = "44095")]
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in New Issue