From 48a763c01fe4fd293cbb97a754f832aaea0840e0 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Sat, 2 May 2020 21:22:46 +0200 Subject: [PATCH] tweak wording on version 2 plan --- README.md | 6 +++--- src/lib.rs | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a751ce5..e5675f4 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ integer. When `Frac` = n, the value x lies in the range −0.5 ≤ x < 0.5 for signed numbers, and in the range 0 ≤ x < 1 for unsigned numbers. -Currently the [*typenum* crate] is used for the fractional bit count -`Frac`; it is planned to move to [const generics] in version 2 when -they are supported by the Rust compiler. +In version 1 the [*typenum* crate] is used for the fractional bit +count `Frac`; the plan is to to have a major version 2 with [const +generics] when they are supported by the Rust compiler. The main features are diff --git a/src/lib.rs b/src/lib.rs index 34d5b83..f490508 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,9 +31,9 @@ integer. When `Frac` = n, the value x lies in the range −0.5 ≤ x < 0.5 for signed numbers, and in the range 0 ≤ x < 1 for unsigned numbers. -Currently the [*typenum* crate] is used for the fractional bit count -`Frac`; it is planned to move to [const generics] in version 2 when -they are supported by the Rust compiler. +In version 1 the [*typenum* crate] is used for the fractional bit +count `Frac`; the plan is to to have a major version 2 with [const +generics] when they are supported by the Rust compiler. The main features are @@ -353,9 +353,9 @@ macro_rules! fixed { $description, " number with `Frac` fractional bits. -Currently `Frac` is an [`Unsigned`] as provided by the -[typenum crate]; it is planned to move to [const generics] in version -2 when they are supported by the Rust compiler. +`Frac` is an [`Unsigned`] as provided by the [*typenum* crate]; the +plan is to move to [const generics] in version 2 when they are +supported by the Rust compiler. # Examples @@ -371,9 +371,9 @@ assert_eq!(two_point_75, 2.75); assert_eq!(two_point_75.to_string(), \"2.8\"); ``` +[*typenum* crate]: https://crates.io/crates/typenum [`Unsigned`]: https://docs.rs/typenum/^1.3/typenum/marker_traits/trait.Unsigned.html [const generics]: https://github.com/rust-lang/rust/issues/44580 -[typenum crate]: https://crates.io/crates/typenum "; #[repr(transparent)] pub struct $Fixed {