chore: fix some typos in comments
Signed-off-by: looklose <shishuaiqun@yeah.net>
This commit is contained in:
parent
4f895a7b4e
commit
ce19d40a80
|
@ -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
|
||||
///
|
||||
|
|
|
@ -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"];
|
||||
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue