From 2244e0ff776dc08e0d33b1da2cb02977da3fce4f Mon Sep 17 00:00:00 2001 From: hattizai Date: Wed, 3 Jul 2024 11:01:40 +0800 Subject: [PATCH] remove duplicate words --- components/zcash_address/src/kind/unified.rs | 2 +- zcash_client_sqlite/src/lib.rs | 2 +- zcash_client_sqlite/src/wallet/scanning.rs | 2 +- zcash_primitives/src/extensions/transparent.rs | 4 ++-- zcash_primitives/src/legacy/keys.rs | 2 +- zcash_primitives/src/transaction/fees/fixed.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/zcash_address/src/kind/unified.rs b/components/zcash_address/src/kind/unified.rs index 8f5ea1903..fd7e4d570 100644 --- a/components/zcash_address/src/kind/unified.rs +++ b/components/zcash_address/src/kind/unified.rs @@ -409,7 +409,7 @@ pub trait Encoding: private::SealedContainer { } } -/// Trait for for Unified containers, that exposes the items within them. +/// Trait for Unified containers, that exposes the items within them. pub trait Container { /// The type of item in this unified container. type Item: SealedItem; diff --git a/zcash_client_sqlite/src/lib.rs b/zcash_client_sqlite/src/lib.rs index a429eee12..2418106a7 100644 --- a/zcash_client_sqlite/src/lib.rs +++ b/zcash_client_sqlite/src/lib.rs @@ -1644,7 +1644,7 @@ impl BlockSource for BlockDb { /// /// This block source is intended to be used with the following data flow: /// * When the cache is being filled: -/// * The caller requests the current maximum height height at which cached data is available +/// * The caller requests the current maximum height at which cached data is available /// using [`FsBlockDb::get_max_cached_height`]. If no cached data is available, the caller /// can use the wallet's synced-to height for the following operations instead. /// * (recommended for privacy) the caller should round the returned height down to some 100- / diff --git a/zcash_client_sqlite/src/wallet/scanning.rs b/zcash_client_sqlite/src/wallet/scanning.rs index 7b4b0b5e2..64dede7e9 100644 --- a/zcash_client_sqlite/src/wallet/scanning.rs +++ b/zcash_client_sqlite/src/wallet/scanning.rs @@ -1134,7 +1134,7 @@ pub(crate) mod tests { &[FakeCompactOutput::new( &dfvk, AddressType::DefaultExternal, - // 1235 notes into into the second shard + // 1235 notes into the second shard NonNegativeAmount::const_from_u64(10000), )], frontier_tree_size + 10, diff --git a/zcash_primitives/src/extensions/transparent.rs b/zcash_primitives/src/extensions/transparent.rs index 9f53bd300..65ed7f78f 100644 --- a/zcash_primitives/src/extensions/transparent.rs +++ b/zcash_primitives/src/extensions/transparent.rs @@ -14,7 +14,7 @@ pub struct AuthData(pub Vec); /// Binary parsing capability for TZE preconditions & witnesses. /// /// Serialization formats interpreted by implementations of this trait become consensus-critical -/// upon activation of of the extension that uses them. +/// upon activation of the extension that uses them. pub trait FromPayload: Sized { type Error; @@ -25,7 +25,7 @@ pub trait FromPayload: Sized { /// Binary serialization capability for TZE preconditions & witnesses. /// /// Serialization formats used by implementations of this trait become consensus-critical upon -/// activation of of the extension that uses them. +/// activation of the extension that uses them. pub trait ToPayload { /// Returns a serialized payload and its corresponding mode. fn to_payload(&self) -> (u32, Vec); diff --git a/zcash_primitives/src/legacy/keys.rs b/zcash_primitives/src/legacy/keys.rs index 8357762cc..99be6d21c 100644 --- a/zcash_primitives/src/legacy/keys.rs +++ b/zcash_primitives/src/legacy/keys.rs @@ -112,7 +112,7 @@ impl AccountPrivKey { /// `m/44'/'/'`. /// /// This produces the root of the derivation tree for transparent - /// viewing keys and addresses for the for the provided account. + /// viewing keys and addresses for the provided account. pub fn from_seed( params: &P, seed: &[u8], diff --git a/zcash_primitives/src/transaction/fees/fixed.rs b/zcash_primitives/src/transaction/fees/fixed.rs index ade5a6951..82e8301ee 100644 --- a/zcash_primitives/src/transaction/fees/fixed.rs +++ b/zcash_primitives/src/transaction/fees/fixed.rs @@ -39,7 +39,7 @@ impl FeeRule { } } - /// Returns the fixed fee amount which which this rule was configured. + /// Returns the fixed fee amount which this rule was configured. pub fn fixed_fee(&self) -> NonNegativeAmount { self.fixed_fee }