From 1a8d429a2ccc763a0c4345234dbf097ca7d14c1e Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 3 May 2024 14:13:19 -0700 Subject: [PATCH] Release 0.2.19 --- Cargo.toml | 2 +- README.md | 2 +- RELEASES.md | 10 ++++++++++ src/real.rs | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b75a7e1a..226d4164 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ categories = ["algorithms", "science", "no-std"] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-num/num-traits" name = "num-traits" -version = "0.2.18" +version = "0.2.19" readme = "README.md" build = "build.rs" exclude = ["/ci/*", "/.github/*"] diff --git a/README.md b/README.md index 71464a86..fd420705 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ default-features = false # features = ["libm"] # <--- Uncomment if you wish to use `Float` and `Real` without `std` ``` -The `Float` and `Real` traits are only available when either `std` or `libm` is enabled. +The `Float` and `Real` traits are only available when either `std` or `libm` is enabled. The `FloatCore` trait is always available. `MulAdd` and `MulAddAssign` for `f32` and `f64` also require `std` or `libm`, as do implementations of signed and floating- diff --git a/RELEASES.md b/RELEASES.md index 56517f6f..5f23f56a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,13 @@ +# Release 0.2.19 (2024-05-03) + +- [Upgrade to 2021 edition, **MSRV 1.60**][310] +- [The new `Float::clamp` limits values by minimum and maximum][305] + +**Contributors**: @cuviper, @michaelciraci + +[305]: https://github.com/rust-num/num-traits/pull/305 +[310]: https://github.com/rust-num/num-traits/pull/310 + # Release 0.2.18 (2024-02-07) - [The new `Euclid::div_rem_euclid` and `CheckedEuclid::checked_div_rem_euclid` methods][291] diff --git a/src/real.rs b/src/real.rs index d4feee0f..25ec8732 100644 --- a/src/real.rs +++ b/src/real.rs @@ -270,7 +270,7 @@ pub trait Real: Num + Copy + NumCast + PartialOrd + Neg { /// Take the square root of a number. /// - /// Returns NaN if `self` is a negative floating-point number. + /// Returns NaN if `self` is a negative floating-point number. /// /// # Panics ///