Fix typos in rustdoc

This commit is contained in:
Tobin C. Harding 2023-08-02 08:20:51 +10:00
parent f3412325ea
commit f00e93bdcd
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ impl FeeRate {
/// Checked weight multiplication. /// Checked weight multiplication.
/// ///
/// Computes `self * rhs` where rhs is of type Weight. `None` is returned if an overflow /// Computes `self * rhs` where rhs is of type Weight. `None` is returned if an overflow
/// occured. /// occurred.
pub fn checked_mul_by_weight(self, rhs: Weight) -> Option<Amount> { pub fn checked_mul_by_weight(self, rhs: Weight) -> Option<Amount> {
self.0.checked_mul(rhs.to_wu()).map(Amount::from_sat) self.0.checked_mul(rhs.to_wu()).map(Amount::from_sat)
} }