Skip to content

Commit

Permalink
chore: fix some typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: looklose <shishuaiqun@yeah.net>
  • Loading branch information
looklose committed Feb 28, 2025
1 parent 4f895a7 commit ce19d40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internals/src/array_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion units/src/amount/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down
2 changes: 1 addition & 1 deletion units/src/amount/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> {
Expand Down

0 comments on commit ce19d40

Please sign in to comment.