typo in from_rational rounding example (#11301)

This commit is contained in:
joe petrowski authored and GitHub committed 2022-04-26 21:15:00 +02:00
1 parent 130880754f
commit dcc8387dfa
1 file changed
+1 -1
@@ -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),