File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ pub trait Ord: Eq + PartialOrd<Self> {
636
636
/// assert!(2.clamp(-2, 1) == 1);
637
637
/// ```
638
638
#[ must_use]
639
- #[ stable( feature = "clamp" , since = "1.49 .0" ) ]
639
+ #[ stable( feature = "clamp" , since = "1.50 .0" ) ]
640
640
fn clamp ( self , min : Self , max : Self ) -> Self
641
641
where
642
642
Self : Sized ,
Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ impl f32 {
897
897
/// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
898
898
/// ```
899
899
#[ must_use = "method returns a new number and does not mutate the original value" ]
900
- #[ stable( feature = "clamp" , since = "1.49 .0" ) ]
900
+ #[ stable( feature = "clamp" , since = "1.50 .0" ) ]
901
901
#[ inline]
902
902
pub fn clamp ( self , min : f32 , max : f32 ) -> f32 {
903
903
assert ! ( min <= max) ;
Original file line number Diff line number Diff line change @@ -899,7 +899,7 @@ impl f64 {
899
899
/// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan());
900
900
/// ```
901
901
#[ must_use = "method returns a new number and does not mutate the original value" ]
902
- #[ stable( feature = "clamp" , since = "1.49 .0" ) ]
902
+ #[ stable( feature = "clamp" , since = "1.50 .0" ) ]
903
903
#[ inline]
904
904
pub fn clamp ( self , min : f64 , max : f64 ) -> f64 {
905
905
assert ! ( min <= max) ;
You can’t perform that action at this time.
0 commit comments