mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
typo in from_rational rounding example (#11301)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user