From 20bc6b6d06910d50c2510881c96c35460a706f6c Mon Sep 17 00:00:00 2001 From: overallteach Date: Sat, 4 May 2024 19:42:10 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: overallteach --- node/src/components/in_memory_network.rs | 2 +- node/src/types/sync_leap.rs | 2 +- types/src/system/auction/error.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/src/components/in_memory_network.rs b/node/src/components/in_memory_network.rs index 5f0d9b99a8..6610e13d9d 100644 --- a/node/src/components/in_memory_network.rs +++ b/node/src/components/in_memory_network.rs @@ -366,7 +366,7 @@ where /// # Panics /// /// Panics if the internal lock has been poisoned, a network with the wrong type of message was - /// removed or if there was no network at at all. + /// removed or if there was no network at all. pub(crate) fn remove_active() { assert!( ACTIVE_NETWORK.with(|active_network| { diff --git a/node/src/types/sync_leap.rs b/node/src/types/sync_leap.rs index 45ee9658f5..1bac82bc45 100644 --- a/node/src/types/sync_leap.rs +++ b/node/src/types/sync_leap.rs @@ -2014,7 +2014,7 @@ mod tests { let fault_tolerance_fraction = Ratio::new_raw(1, 3); - // Assert only if correct eras are selected, since the the + // Assert only if correct eras are selected, since the // `should_return_era_validator_weights_for_correct_sync_leap` test already covers the // actual weight validation. let protocol_config = ProtocolConfig { diff --git a/types/src/system/auction/error.rs b/types/src/system/auction/error.rs index 00bd174155..989fb0e640 100644 --- a/types/src/system/auction/error.rs +++ b/types/src/system/auction/error.rs @@ -127,7 +127,7 @@ pub enum Error { /// assert_eq!(17, Error::InvalidPublicKey as u8); /// ``` InvalidPublicKey = 17, - /// Validator is not not bonded. + /// Validator is not bonded. /// ``` /// # use casper_types::system::auction::Error; /// assert_eq!(18, Error::BondNotFound as u8);