Merge rust-bitcoin/rust-bitcoin#4398: Fix typo in result.rs documentation: "operatons" -> "operations"

d5f8a02b9b Update result.rs (leopardracer)

Pull request description:

  **Description:**
  This PR fixes a small typo in the documentation comment in units/src/result.rs where "operatons" was misspelled as "operations". This improves code documentation clarity and consistency.

  Changes:
  - Corrected spelling of "operatons" to "operations" in the documentation comment
  - No functional changes, documentation-only update

ACKs for top commit:
  apoelstra:
    ACK d5f8a02b9ba0f57e95375b8241826467b6b04b04; successfully ran local tests

Tree-SHA512: b9d6ea4c8d36e6a9f8d397b4db31d99f0b9d0101a0bef922f0c3832c501fbc773f8871c350ae8add47ab1f1c4d15806e1b1d9f0b9d7dd707b38adcc2afad8b34
This commit is contained in:
merge-script 2025-04-26 23:43:46 +00:00
commit 068d512d5e
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
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.
///
/// 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.
///
/// `NumOpResult` is a monadic type that contains `Valid` and `Error` (similar to `Ok` and `Err`).