units: fix typo

This commit is contained in:
calciumbe 2024-12-23 20:35:14 +08:00
parent a6a746b8c0
commit 589dd025df
No known key found for this signature in database
GPG Key ID: 92A6C8D87253B95C
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ impl FeeRate {
/// Checked addition.
///
/// Computes `self + rhs` returning [`None`] if overflow occured.
/// Computes `self + rhs` returning [`None`] if overflow occurred.
#[must_use]
pub const fn checked_add(self, rhs: u64) -> Option<Self> {
// No `map()` in const context.
@ -133,7 +133,7 @@ impl FeeRate {
/// Checked subtraction.
///
/// Computes `self - rhs` returning [`None`] if overflow occured.
/// Computes `self - rhs` returning [`None`] if overflow occurred.
#[must_use]
pub const fn checked_sub(self, rhs: u64) -> Option<Self> {
// No `map()` in const context.