We missed 1.49.0, so bump version to 1.50.0
This commit is contained in:
parent
a7d3368448
commit
fb6ceac46b
3 changed files with 3 additions and 3 deletions
|
@ -636,7 +636,7 @@ pub trait Ord: Eq + PartialOrd<Self> {
|
||||||
/// assert!(2.clamp(-2, 1) == 1);
|
/// assert!(2.clamp(-2, 1) == 1);
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "clamp", since = "1.49.0")]
|
#[stable(feature = "clamp", since = "1.50.0")]
|
||||||
fn clamp(self, min: Self, max: Self) -> Self
|
fn clamp(self, min: Self, max: Self) -> Self
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|
|
@ -897,7 +897,7 @@ impl f32 {
|
||||||
/// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
|
/// assert!((f32::NAN).clamp(-2.0, 1.0).is_nan());
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
#[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]
|
#[inline]
|
||||||
pub fn clamp(self, min: f32, max: f32) -> f32 {
|
pub fn clamp(self, min: f32, max: f32) -> f32 {
|
||||||
assert!(min <= max);
|
assert!(min <= max);
|
||||||
|
|
|
@ -899,7 +899,7 @@ impl f64 {
|
||||||
/// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan());
|
/// assert!((f64::NAN).clamp(-2.0, 1.0).is_nan());
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
#[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]
|
#[inline]
|
||||||
pub fn clamp(self, min: f64, max: f64) -> f64 {
|
pub fn clamp(self, min: f64, max: f64) -> f64 {
|
||||||
assert!(min <= max);
|
assert!(min <= max);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue