Skip to content

Commit

Permalink
fix writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehforsch committed Feb 25, 2024
1 parent befb66d commit afa28ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ assert_eq!(format!("{:?}", length / time), "5000 m s^-1")
# Custom unit systems
## The `unit_system` macro
Diman also provides the `unit_system` macro for defining custom
unit systems for everything that is not covered by SI alone.
unit systems for everything that is not covered by SI alone. The
macro will add a new quantity type and implement all the required
methods and traits to make it usable.
As an example, consider the following macro call:
```rust
diman::unit_system!(
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@
//! # Custom unit systems
//! ## The `unit_system` macro
//! Diman also provides the `unit_system` macro for defining custom
//! unit systems for everything that is not covered by SI alone.
//! unit systems for everything that is not covered by SI alone. The
//! macro will add a new quantity type and implement all the required
//! methods and traits to make it usable.
//! As an example, consider the following macro call:
//! ```
//! # #![allow(incomplete_features)]
Expand Down

0 comments on commit afa28ac

Please sign in to comment.