From c8885038d01c914cfe558046f958d879b4877c6c Mon Sep 17 00:00:00 2001 From: gopherorg Date: Fri, 27 Jun 2025 16:15:04 +0800 Subject: [PATCH] chore: remove redundant words in comment Signed-off-by: gopherorg --- generated/rust/protos/src/babylon.incentive.rs | 2 +- lib/ssz/src/tree_hash/merkle_hasher.rs | 2 +- lib/unionlabs/src/aptos/account.rs | 2 +- unionvisor/src/bundle.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generated/rust/protos/src/babylon.incentive.rs b/generated/rust/protos/src/babylon.incentive.rs index b40030097f..823b3e9f39 100644 --- a/generated/rust/protos/src/babylon.incentive.rs +++ b/generated/rust/protos/src/babylon.incentive.rs @@ -6,7 +6,7 @@ #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, :: prost :: Message)] pub struct BtcDelegationRewardsTracker { - /// StartPeriodCumulativeReward the starting period the the BTC delegator + /// StartPeriodCumulativeReward the starting period the BTC delegator /// made his last withdraw of rewards or modified his active staking amount /// of satoshis. #[prost(uint64, tag = "1")] diff --git a/lib/ssz/src/tree_hash/merkle_hasher.rs b/lib/ssz/src/tree_hash/merkle_hasher.rs index 07911f9d16..b2a53bedb8 100644 --- a/lib/ssz/src/tree_hash/merkle_hasher.rs +++ b/lib/ssz/src/tree_hash/merkle_hasher.rs @@ -151,7 +151,7 @@ fn get_parent(i: usize) -> usize { /// /// It is a logic error to provide `i == 0`. /// -/// E.g., if `i` is 1, depth is 0. If `i` is is 1, depth is 1. +/// E.g., if `i` is 1, depth is 0. If `i` is 1, depth is 1. fn get_depth(i: usize) -> usize { let total_bits = mem::size_of::() * 8; total_bits - i.leading_zeros() as usize - 1 diff --git a/lib/unionlabs/src/aptos/account.rs b/lib/unionlabs/src/aptos/account.rs index fac242c8e7..ea574bc386 100644 --- a/lib/unionlabs/src/aptos/account.rs +++ b/lib/unionlabs/src/aptos/account.rs @@ -18,7 +18,7 @@ impl AccountAddress { /// Returns whether the address is a "special" address. Addresses are considered /// special if the first 63 characters of the hex string are zero. In other words, /// an address is special if the first 31 bytes are zero and the last byte is - /// smaller than than `0b10000` (16). In other words, special is defined as an address + /// smaller than `0b10000` (16). In other words, special is defined as an address /// that matches the following regex: `^0x0{63}[0-9a-f]$`. In short form this means /// the addresses in the range from `0x0` to `0xf` (inclusive) are special. /// diff --git a/unionvisor/src/bundle.rs b/unionvisor/src/bundle.rs index 296da5fd18..b8969eef63 100644 --- a/unionvisor/src/bundle.rs +++ b/unionvisor/src/bundle.rs @@ -149,7 +149,7 @@ impl Bundle { ) } - /// Provides the full path the the versions directory + /// Provides the full path the versions directory pub fn versions_path(&self) -> PathBuf { self.path.join(&self.meta.versions_directory) }