Update result.rs

This commit is contained in:
leopardracer 2025-04-26 12:47:19 +03:00 committed by GitHub
parent 41e9976998
commit d5f8a02b9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ use crate::{Amount, FeeRate, SignedAmount, Weight};
/// Result of a mathematical operation on two numeric types. /// Result of a mathematical operation on two numeric types.
/// ///
/// In order to prevent overflow we provide a custom result type that is similar to the normal /// In order to prevent overflow we provide a custom result type that is similar to the normal
/// [`core::result::Result`] but implements mathematical operatons (e.g. [`core::ops::Add`]) so that /// [`core::result::Result`] but implements mathematical operations (e.g. [`core::ops::Add`]) so that
/// math operations can be chained ergonomically. This is very similar to how `NaN` works. /// math operations can be chained ergonomically. This is very similar to how `NaN` works.
/// ///
/// `NumOpResult` is a monadic type that contains `Valid` and `Error` (similar to `Ok` and `Err`). /// `NumOpResult` is a monadic type that contains `Valid` and `Error` (similar to `Ok` and `Err`).