File tree 4 files changed +3
-8
lines changed
4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -641,14 +641,12 @@ pub trait Ord: Eq + PartialOrd<Self> {
641
641
/// # Examples
642
642
///
643
643
/// ```
644
- /// #![feature(clamp)]
645
- ///
646
644
/// assert!((-3).clamp(-2, 1) == -2);
647
645
/// assert!(0.clamp(-2, 1) == 0);
648
646
/// assert!(2.clamp(-2, 1) == 1);
649
647
/// ```
650
648
#[ must_use]
651
- #[ unstable ( feature = "clamp" , issue = "44095 " ) ]
649
+ #[ stable ( feature = "clamp" , since = "1.50.0 " ) ]
652
650
fn clamp ( self , min : Self , max : Self ) -> Self
653
651
where
654
652
Self : Sized ,
Original file line number Diff line number Diff line change @@ -893,14 +893,13 @@ impl f32 {
893
893
/// # Examples
894
894
///
895
895
/// ```
896
- /// #![feature(clamp)]
897
896
/// assert!((-3.0f32).clamp(-2.0, 1.0) == -2.0);
898
897
/// assert!((0.0f32).clamp(-2.0, 1.0) == 0.0);
899
898
/// assert!((2.0f32).clamp(-2.0, 1.0) == 1.0);
900
899
/// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
901
900
/// ```
902
901
#[ must_use = "method returns a new number and does not mutate the original value" ]
903
- #[ unstable ( feature = "clamp" , issue = "44095 " ) ]
902
+ #[ stable ( feature = "clamp" , since = "1.50.0 " ) ]
904
903
#[ inline]
905
904
pub fn clamp ( self , min : f32 , max : f32 ) -> f32 {
906
905
assert ! ( min <= max) ;
Original file line number Diff line number Diff line change @@ -895,14 +895,13 @@ impl f64 {
895
895
/// # Examples
896
896
///
897
897
/// ```
898
- /// #![feature(clamp)]
899
898
/// assert!((-3.0f64).clamp(-2.0, 1.0) == -2.0);
900
899
/// assert!((0.0f64).clamp(-2.0, 1.0) == 0.0);
901
900
/// assert!((2.0f64).clamp(-2.0, 1.0) == 1.0);
902
901
/// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan());
903
902
/// ```
904
903
#[ must_use = "method returns a new number and does not mutate the original value" ]
905
- #[ unstable ( feature = "clamp" , issue = "44095 " ) ]
904
+ #[ stable ( feature = "clamp" , since = "1.50.0 " ) ]
906
905
#[ inline]
907
906
pub fn clamp ( self , min : f64 , max : f64 ) -> f64 {
908
907
assert ! ( min <= max) ;
Original file line number Diff line number Diff line change 235
235
#![ feature( cfg_target_thread_local) ]
236
236
#![ feature( char_error_internals) ]
237
237
#![ feature( char_internals) ]
238
- #![ feature( clamp) ]
239
238
#![ feature( concat_idents) ]
240
239
#![ feature( const_cstr_unchecked) ]
241
240
#![ feature( const_fn_floating_point_arithmetic) ]
You can’t perform that action at this time.
0 commit comments