From 4f1a9b3bd37cc1f9ab5280460c450b8f6a541ba8 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Tue, 6 Aug 2019 21:56:47 +0200 Subject: [PATCH] tweaks --- README.md | 2 +- src/consts.rs | 6 +++--- src/lib.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fdd6e25..9e4f205 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ numeric primitives are implemented. That is, you can use [`From`] or * The [*fixed* crate] now requires rustc version 1.31.1 or later. * The [`traits`] module was added, with its traits [`Fixed`], [`FixedSigned`], [`FixedUnsigned`], [`FromFixed`], [`ToFixed`], - [`LossyFrom`] and [`LossyInto`],. + [`LossyFrom`] and [`LossyInto`]. * The [`saturating_neg`] method was added to all fixed-point numbers, and the [`saturating_abs`] method was added to signed fixed-point numbers. diff --git a/src/consts.rs b/src/consts.rs index da8df47..808f3b4 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -22,9 +22,9 @@ number, and are rounded down at that precision. # Examples ```rust -let pi: fixed::types::I8F8 = fixed::consts::PI.to_fixed(); -println!("π with eight binary places is {:b}", pi); -assert_eq!(format!("{:b}", pi), "11.00100100"); +let tau: fixed::types::I8F8 = fixed::consts::TAU.to_fixed(); +println!("τ = 2π with eight binary places is {:b}", tau); +assert_eq!(format!("{:b}", tau), "110.01001000"); ``` */ diff --git a/src/lib.rs b/src/lib.rs index 4608b75..5aacb52 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -233,7 +233,7 @@ use { /// have to do so manually: /// /// ``` -/// ##[allow(unused_imports)] +/// # #[allow(unused_imports)] /// use fixed::prelude::*; /// ``` ///