Revise doc comment
Comment that the ceiling is computed instead of the floor.
This commit is contained in:
parent
7360c3ce9a
commit
8c29fe08f8
|
@ -86,6 +86,9 @@ impl FeeRate {
|
|||
/// Checked weight multiplication.
|
||||
///
|
||||
/// Computes the absolute fee amount for a given [`Weight`] at this fee rate.
|
||||
/// When the resulting fee is a non-integer amount, the amount is rounded up,
|
||||
/// ensuring that the transaction fee is enough instead of falling short if
|
||||
/// rounded down.
|
||||
///
|
||||
/// [`None`] is returned if an overflow occurred.
|
||||
pub fn checked_mul_by_weight(self, rhs: Weight) -> Option<Amount> {
|
||||
|
|
Loading…
Reference in New Issue