File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -962,6 +962,7 @@ impl f32 {
962
962
/// # Examples
963
963
///
964
964
/// ```
965
+ /// #![feature(clamp)]
965
966
/// assert!((-3.0f32).clamp(-2.0f32, 1.0f32) == -2.0f32);
966
967
/// assert!((0.0f32).clamp(-2.0f32, 1.0f32) == 0.0f32);
967
968
/// assert!((2.0f32).clamp(-2.0f32, 1.0f32) == 1.0f32);
Original file line number Diff line number Diff line change @@ -884,6 +884,7 @@ impl f64 {
884
884
/// # Examples
885
885
///
886
886
/// ```
887
+ /// #![feature(clamp)]
887
888
/// assert!((-3.0f64).clamp(-2.0f64, 1.0f64) == -2.0f64);
888
889
/// assert!((0.0f64).clamp(-2.0f64, 1.0f64) == 0.0f64);
889
890
/// assert!((2.0f64).clamp(-2.0f64, 1.0f64) == 1.0f64);
Original file line number Diff line number Diff line change 240
240
#![ feature( cfg_target_thread_local) ]
241
241
#![ feature( char_error_internals) ]
242
242
#![ feature( checked_duration_since) ]
243
+ #![ feature( clamp) ]
243
244
#![ feature( compiler_builtins_lib) ]
244
245
#![ feature( concat_idents) ]
245
246
#![ feature( const_cstr_unchecked) ]
You can’t perform that action at this time.
0 commit comments