chore: fix some typos in comments

Signed-off-by: looklose <shishuaiqun@yeah.net>
This commit is contained in:
looklose 2025-02-28 17:55:31 +08:00
parent 4f895a7b4e
commit ce19d40a80
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ mod safety_boundary {
/// Constructs an empty `ArrayVec`. /// Constructs an empty `ArrayVec`.
pub const fn new() -> Self { Self { len: 0, data: [MaybeUninit::uninit(); CAP] } } 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 /// # Panics
/// ///

View File

@ -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. /// If any of these forms are used, an error type `PossiblyConfusingDenomination` is returned.
const CONFUSING_FORMS: [&str; 6] = ["CBTC", "Cbtc", "MBTC", "Mbtc", "UBTC", "Ubtc"]; const CONFUSING_FORMS: [&str; 6] = ["CBTC", "Cbtc", "MBTC", "Mbtc", "UBTC", "Ubtc"];

View File

@ -11,7 +11,7 @@ use super::{Amount, SignedAmount};
/// Result of an operation on [`Amount`] or [`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)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[must_use] #[must_use]
pub enum NumOpResult<T> { pub enum NumOpResult<T> {