From 19370e73b259ddb7028ccfe28a7d7548300e9993 Mon Sep 17 00:00:00 2001
From: depthlending <bikangning@outlook.com>
Date: Wed, 11 Dec 2024 13:52:19 +0800
Subject: [PATCH] chore: remove redundant words in comment

Signed-off-by: depthlending <bikangning@outlook.com>
---
 protocol-units/bridge/util/src/states.rs         | 6 +++---
 util/movement-algs/src/grouping_heuristic/mod.rs | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/protocol-units/bridge/util/src/states.rs b/protocol-units/bridge/util/src/states.rs
index 8cd7c42c9..55cdbac04 100644
--- a/protocol-units/bridge/util/src/states.rs
+++ b/protocol-units/bridge/util/src/states.rs
@@ -85,14 +85,14 @@ impl TransferState {
 				// already present invalid
 				Err(InvalidEventError::InitAnAlreadyExist)
 			}
-			// Lock event must on on the counter part chain.
+			// Lock event must on the counter part chain.
 			(BridgeContractEvent::Locked(_), TransferStateType::Initialized) => (event.chain
 				!= self.init_chain)
 				.then_some(())
 				.ok_or(InvalidEventError::BadChain),
 			// Lock event is only applied on Initialized swap state
 			(BridgeContractEvent::Locked(details), _) => Err(InvalidEventError::BadEvent(format!("Received a locked event with state not Initialized, transfer_id: {} state:{} details: {details:?}", self.transfer_id, self.state))),
-			// CounterPartCompleted event must on on the counter part chain.
+			// CounterPartCompleted event must on the counter part chain.
 			(BridgeContractEvent::CounterPartyCompleted(_, _), TransferStateType::Locked) => {
 				(event.chain != self.init_chain)
 					.then_some(())
@@ -102,7 +102,7 @@ impl TransferState {
 			(BridgeContractEvent::CounterPartyCompleted(_, _), _) => {
 				Err(InvalidEventError::BadEvent(format!("Received a CounterPartCompleted event with state not Locked, transfer_id: {} state:{}", self.transfer_id, self.state)))
 			}
-			// InitiatorCompleted event must on on the init chain.
+			// InitiatorCompleted event must on the init chain.
 			(BridgeContractEvent::InitiatorCompleted(_), TransferStateType::SecretReceived) => {
 				(event.chain == self.init_chain)
 					.then_some(())
diff --git a/util/movement-algs/src/grouping_heuristic/mod.rs b/util/movement-algs/src/grouping_heuristic/mod.rs
index 3b6a82166..0acd811b5 100644
--- a/util/movement-algs/src/grouping_heuristic/mod.rs
+++ b/util/movement-algs/src/grouping_heuristic/mod.rs
@@ -10,7 +10,7 @@ use std::fmt::Debug;
 /// A failure type for a single member of the heuristically formed group.
 #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
 pub enum ElementalFailure<T> {
-	/// An instrumental failure is intended to be be passed on in future iterations.
+	/// An instrumental failure is intended to be passed on in future iterations.
 	Instrumental(T),
 	/// A terminal failure is intended to be dropped or pause the execution altogether.
 	Terminal(T),