From ce19d40a805e2b67f6199cce61a73c6592019b5c Mon Sep 17 00:00:00 2001 From: looklose Date: Fri, 28 Feb 2025 17:55:31 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: looklose --- internals/src/array_vec.rs | 2 +- units/src/amount/mod.rs | 2 +- units/src/amount/result.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internals/src/array_vec.rs b/internals/src/array_vec.rs index bd4954aacb..76d0490d5f 100644 --- a/internals/src/array_vec.rs +++ b/internals/src/array_vec.rs @@ -25,7 +25,7 @@ mod safety_boundary { /// Constructs an empty `ArrayVec`. pub const fn new() -> Self { Self { len: 0, data: [MaybeUninit::uninit(); CAP] } } - /// Constructs a new `ArrayVec` initialized with the contets of `slice`. + /// Constructs a new `ArrayVec` initialized with the contents of `slice`. /// /// # Panics /// diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs index e5e23417c8..345c3badfb 100644 --- a/units/src/amount/mod.rs +++ b/units/src/amount/mod.rs @@ -139,7 +139,7 @@ impl Denomination { } } -/// These form are ambigous and could have many meanings. For example, M could denote Mega or Milli. +/// These form are ambiguous and could have many meanings. For example, M could denote Mega or Milli. /// If any of these forms are used, an error type `PossiblyConfusingDenomination` is returned. const CONFUSING_FORMS: [&str; 6] = ["CBTC", "Cbtc", "MBTC", "Mbtc", "UBTC", "Ubtc"]; diff --git a/units/src/amount/result.rs b/units/src/amount/result.rs index 724230833e..e229a02c7a 100644 --- a/units/src/amount/result.rs +++ b/units/src/amount/result.rs @@ -11,7 +11,7 @@ use super::{Amount, SignedAmount}; /// Result of an operation on [`Amount`] or [`SignedAmount`]. /// -/// The type parameter `T` should be normally `Amout` or `SignedAmount`. +/// The type parameter `T` should be normally `Amount` or `SignedAmount`. #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[must_use] pub enum NumOpResult {