Skip to content

Commit af0d525

Browse files
authored
Documentation
Signed-off-by: GitHub <[email protected]>
1 parent 051472d commit af0d525

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ In that example:
8282

8383
Most methods and traits available on the underlying type are available on the types of this crate.
8484

85-
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`].
85+
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

8787
⚠️ Like for primitives [`f32`] and [`f64`],`-0.0 == +0.0` is `true` for all types of this crate.
8888
To facilitate comparisons, the methods `is_positive_zero` and `is_negative_zero` are added.

typed_floats/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![doc = include_str!("../README.truncated.md")]
22
//! # Rules
33
//!
4-
//! Conversions rules for operations are summarized in [`TypedFloat`].
4+
//! Conversions rules for operations are summarized in [`doc`].
55
//!
66
//! # Examples
77
//!
@@ -127,7 +127,7 @@ pub use traits::*;
127127
pub use types::*;
128128

129129
typed_floats_macros::generate_docs!(
130-
pub trait TypedFloat {}
130+
pub mod doc {}
131131
);
132132

133133
/// This module contains constants from [`core::f64`], casted to the corresponding type

typed_floats/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// An error that can occur when converting from a string into a `TypedFloat`
1+
/// An error that can occur when converting from a string into a TypedFloat
22
#[derive(Debug)]
33
pub enum FromStrError {
44
/// The string did not contain a valid float number

0 commit comments

Comments
 (0)