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 @@ -631,14 +631,12 @@ pub trait Ord: Eq + PartialOrd<Self> {
631
631
/// # Examples
632
632
///
633
633
/// ```
634
- /// #![feature(clamp)]
635
- ///
636
634
/// assert!((-3).clamp(-2, 1) == -2);
637
635
/// assert!(0.clamp(-2, 1) == 0);
638
636
/// assert!(2.clamp(-2, 1) == 1);
639
637
/// ```
640
638
#[ must_use]
641
- #[ unstable ( feature = "clamp" , issue = "44095 " ) ]
639
+ #[ stable ( feature = "clamp" , since = "1.49.0 " ) ]
642
640
fn clamp ( self , min : Self , max : Self ) -> Self
643
641
where
644
642
Self : Sized ,
Original file line number Diff line number Diff line change @@ -891,14 +891,13 @@ impl f32 {
891
891
/// # Examples
892
892
///
893
893
/// ```
894
- /// #![feature(clamp)]
895
894
/// assert!((-3.0f32).clamp(-2.0, 1.0) == -2.0);
896
895
/// assert!((0.0f32).clamp(-2.0, 1.0) == 0.0);
897
896
/// assert!((2.0f32).clamp(-2.0, 1.0) == 1.0);
898
897
/// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
899
898
/// ```
900
899
#[ must_use = "method returns a new number and does not mutate the original value" ]
901
- #[ unstable ( feature = "clamp" , issue = "44095 " ) ]
900
+ #[ stable ( feature = "clamp" , since = "1.49.0 " ) ]
902
901
#[ inline]
903
902
pub fn clamp ( self , min : f32 , max : f32 ) -> f32 {
904
903
assert ! ( min <= max) ;
Original file line number Diff line number Diff line change @@ -893,14 +893,13 @@ impl f64 {
893
893
/// # Examples
894
894
///
895
895
/// ```
896
- /// #![feature(clamp)]
897
896
/// assert!((-3.0f64).clamp(-2.0, 1.0) == -2.0);
898
897
/// assert!((0.0f64).clamp(-2.0, 1.0) == 0.0);
899
898
/// assert!((2.0f64).clamp(-2.0, 1.0) == 1.0);
900
899
/// assert!((f64::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.49.0 " ) ]
904
903
#[ inline]
905
904
pub fn clamp ( self , min : f64 , max : f64 ) -> f64 {
906
905
assert ! ( min <= max) ;
Original file line number Diff line number Diff line change 234
234
#![ feature( cfg_target_thread_local) ]
235
235
#![ feature( char_error_internals) ]
236
236
#![ feature( char_internals) ]
237
- #![ feature( clamp) ]
238
237
#![ feature( concat_idents) ]
239
238
#![ feature( const_cstr_unchecked) ]
240
239
#![ feature( const_fn_floating_point_arithmetic) ]
You can’t perform that action at this time.
0 commit comments