test fixed-macro rustdoc example

This commit is contained in:
Trevor Spiteri 2020-10-19 10:50:38 +02:00
parent 27914b9a03
commit 4c1595c562
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ num-traits = { version = "0.2.12", default-features = false, optional = true }
serde = { version = "1.0.60", default-features = false, optional = true }
[dev-dependencies]
fixed-macro = "1"
rand = { version = "0.7", default-features = false }
rand_xoshiro = "0.4"
criterion = "0.3"

View File

@ -145,7 +145,7 @@ cannot use [`From`] as we have less fractional bits, so we use
The [*fixed-macro* crate] provides a convenient macro to write down
fixed-point constants literally in the code.
```ignore
```rust
use fixed::types::I16F16;
use fixed_macro::fixed;