diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index f2ebe0c41c3..c181de44eca 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -636,7 +636,7 @@ pub trait Ord: Eq + PartialOrd { /// assert!(2.clamp(-2, 1) == 1); /// ``` #[must_use] - #[stable(feature = "clamp", since = "1.49.0")] + #[stable(feature = "clamp", since = "1.50.0")] fn clamp(self, min: Self, max: Self) -> Self where Self: Sized, diff --git a/library/std/src/f32.rs b/library/std/src/f32.rs index 63afc7ad089..0d4ea527a7b 100644 --- a/library/std/src/f32.rs +++ b/library/std/src/f32.rs @@ -897,7 +897,7 @@ impl f32 { /// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan()); /// ``` #[must_use = "method returns a new number and does not mutate the original value"] - #[stable(feature = "clamp", since = "1.49.0")] + #[stable(feature = "clamp", since = "1.50.0")] #[inline] pub fn clamp(self, min: f32, max: f32) -> f32 { assert!(min <= max); diff --git a/library/std/src/f64.rs b/library/std/src/f64.rs index bb2a6c87f50..aa143dd4a9b 100644 --- a/library/std/src/f64.rs +++ b/library/std/src/f64.rs @@ -899,7 +899,7 @@ impl f64 { /// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan()); /// ``` #[must_use = "method returns a new number and does not mutate the original value"] - #[stable(feature = "clamp", since = "1.49.0")] + #[stable(feature = "clamp", since = "1.50.0")] #[inline] pub fn clamp(self, min: f64, max: f64) -> f64 { assert!(min <= max);