Skip to content

Commit 1a8d429

Browse files
committed
Release 0.2.19
1 parent 8358949 commit 1a8d429

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ categories = ["algorithms", "science", "no-std"]
88
license = "MIT OR Apache-2.0"
99
repository = "https://github.com/rust-num/num-traits"
1010
name = "num-traits"
11-
version = "0.2.18"
11+
version = "0.2.19"
1212
readme = "README.md"
1313
build = "build.rs"
1414
exclude = ["/ci/*", "/.github/*"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ default-features = false
2828
# features = ["libm"] # <--- Uncomment if you wish to use `Float` and `Real` without `std`
2929
```
3030

31-
The `Float` and `Real` traits are only available when either `std` or `libm` is enabled.
31+
The `Float` and `Real` traits are only available when either `std` or `libm` is enabled.
3232

3333
The `FloatCore` trait is always available. `MulAdd` and `MulAddAssign` for `f32`
3434
and `f64` also require `std` or `libm`, as do implementations of signed and floating-

RELEASES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Release 0.2.19 (2024-05-03)
2+
3+
- [Upgrade to 2021 edition, **MSRV 1.60**][310]
4+
- [The new `Float::clamp` limits values by minimum and maximum][305]
5+
6+
**Contributors**: @cuviper, @michaelciraci
7+
8+
[305]: https://github.com/rust-num/num-traits/pull/305
9+
[310]: https://github.com/rust-num/num-traits/pull/310
10+
111
# Release 0.2.18 (2024-02-07)
212

313
- [The new `Euclid::div_rem_euclid` and `CheckedEuclid::checked_div_rem_euclid` methods][291]

src/real.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ pub trait Real: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
270270

271271
/// Take the square root of a number.
272272
///
273-
/// Returns NaN if `self` is a negative floating-point number.
273+
/// Returns NaN if `self` is a negative floating-point number.
274274
///
275275
/// # Panics
276276
///

0 commit comments

Comments
 (0)