This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 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> {
636636 /// assert!(2.clamp(-2, 1) == 1);
637637 /// ```
638638 #[ must_use]
639- #[ stable( feature = "clamp" , since = "1.49 .0" ) ]
639+ #[ stable( feature = "clamp" , since = "1.50 .0" ) ]
640640 fn clamp ( self , min : Self , max : Self ) -> Self
641641 where
642642 Self : Sized ,
Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ impl f32 {
897897 /// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
898898 /// ```
899899 #[ 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" ) ]
901901 #[ inline]
902902 pub fn clamp ( self , min : f32 , max : f32 ) -> f32 {
903903 assert ! ( min <= max) ;
Original file line number Diff line number Diff line change @@ -899,7 +899,7 @@ impl f64 {
899899 /// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan());
900900 /// ```
901901 #[ 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" ) ]
903903 #[ inline]
904904 pub fn clamp ( self , min : f64 , max : f64 ) -> f64 {
905905 assert ! ( min <= max) ;
You can’t perform that action at this time.
0 commit comments