Skip to content

Commit 6e93a8f

Browse files
authored
Readme improvements (rust-lang/crates.io#11441)
Signed-off-by: GitHub <noreply@github.com>
1 parent e3846a8 commit 6e93a8f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ Most methods and traits available on the underlying type are available on the ty
8484

8585
Most constants are also available, with the most appropriate TypedFloat type (except `NAN` for obvious reasons) in the [`tf64`] and [`tf32`] modules (in [`tf64::consts`] and [`tf32::consts`] respectively when the constant comes from [`core::f64::consts`] or [`core::f32::consts`]). Those modules are named that way to avoid conflicts or confusion with the primitives [`f32`] and [`f64`].
8686

87-
⚠️ Like for primitives [`f32`] and [`f64`],`-0.0 == +0.0` is `true` for all types of this crate.
88-
To facilitate comparisons, the methods `is_positive_zero` and `is_negative_zero` are added.
87+
> [!WARNING]
88+
> Like for primitives [`f32`] and [`f64`],`-0.0 == +0.0` is `true` for all types of this crate.
89+
> To facilitate comparisons, the methods `is_positive_zero` and `is_negative_zero` are added.
8990
9091
# Traits implemented
9192

@@ -153,7 +154,8 @@ A `panic!` triggered in any other way is considered a security bug and should be
153154

154155
This crate is designed to have a minimal overhead at runtime, in terms of memory, speed and binary size.
155156

156-
It can even be faster than using primitives [`f32`] and [`f64`] directly, as it may avoids some checks by using compiler hints and can use some faster implementations in some cases.
157+
> [!TIP]
158+
> It can even be faster than using primitives [`f32`] and [`f64`] directly, as it may avoids some checks by using compiler hints and can use some faster implementations in some cases.
157159
158160
### Overhead
159161

0 commit comments

Comments
 (0)