1
Fork 0

We missed 1.49.0, so bump version to 1.50.0

This commit is contained in:
Jacob Kiesel 2020-11-20 10:37:22 -07:00
parent a7d3368448
commit fb6ceac46b
3 changed files with 3 additions and 3 deletions

View file

@ -897,7 +897,7 @@ impl f32 {
/// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
/// ```
#[must_use = "method returns a new number and does not mutate the original value"]
#[stable(feature = "clamp", since = "1.49.0")]
#[stable(feature = "clamp", since = "1.50.0")]
#[inline]
pub fn clamp(self, min: f32, max: f32) -> f32 {
assert!(min <= max);

View file

@ -899,7 +899,7 @@ impl f64 {
/// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan());
/// ```
#[must_use = "method returns a new number and does not mutate the original value"]
#[stable(feature = "clamp", since = "1.49.0")]
#[stable(feature = "clamp", since = "1.50.0")]
#[inline]
pub fn clamp(self, min: f64, max: f64) -> f64 {
assert!(min <= max);