Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
typo in from_rational rounding example (paritytech#11301)
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski authored and DaviRain-Su committed Aug 23, 2022
1 parent a097e86 commit 2fc8a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/arithmetic/src/per_things.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ pub trait PerThing:
/// ```rust
/// # use sp_arithmetic::{Percent, PerThing};
/// # fn main () {
/// // 989/100 is technically closer to 99%.
/// // 989/1000 is technically closer to 99%.
/// assert_eq!(
/// Percent::from_rational(989u64, 1000),
/// Percent::from_parts(98),
Expand Down

0 comments on commit 2fc8a11

Please sign in to comment.