From 05f7b3ca59ac4b550386d3c28b3073290861878d Mon Sep 17 00:00:00 2001 From: bytetigers Date: Tue, 13 Aug 2024 21:43:54 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: bytetigers --- ci/check_runtime_changes.sh | 2 +- pallets/liquidity-pools/src/lib.rs | 2 +- pallets/pool-system/src/tranches.rs | 4 ++-- runtime/integration-tests/src/cases/block_rewards.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/check_runtime_changes.sh b/ci/check_runtime_changes.sh index dd847daf8e..4f539d0a80 100755 --- a/ci/check_runtime_changes.sh +++ b/ci/check_runtime_changes.sh @@ -48,7 +48,7 @@ RUNTIME_FILE_CHANGED=$(echo "${CHANGED_FILES}" | grep -e ^runtime/ | wc -l) echo "There are ${RUNTIME_FILE_CHANGED} file(s) changed in runtime " -# If there are no changes in the runtime file, exit sucessfully +# If there are no changes in the runtime file, exit successfully if (( $RUNTIME_FILE_CHANGED == 0 )) then echo -e "| ${OK} Nothing is changed in runtime" diff --git a/pallets/liquidity-pools/src/lib.rs b/pallets/liquidity-pools/src/lib.rs index ad4cba72fe..af98f9077d 100644 --- a/pallets/liquidity-pools/src/lib.rs +++ b/pallets/liquidity-pools/src/lib.rs @@ -305,7 +305,7 @@ pub mod pallet { /// The metadata of the given asset does not declare it as transferable /// via LiquidityPools'. AssetNotLiquidityPoolsTransferable, - /// The asset is not a a wrapped token and thus cannot be + /// The asset is not a wrapped token and thus cannot be /// transferred via liquidity pools. AssetNotLiquidityPoolsWrappedToken, /// A pool could not be found. diff --git a/pallets/pool-system/src/tranches.rs b/pallets/pool-system/src/tranches.rs index 946977e587..9a3da745b2 100644 --- a/pallets/pool-system/src/tranches.rs +++ b/pallets/pool-system/src/tranches.rs @@ -2064,7 +2064,7 @@ pub mod test { fn replace_tranche_less_interest_than_next_works() { let mut tranches = default_tranches(); - // ensure we have an interest rate lower than the the left side tranche with a + // ensure we have an interest rate lower than the left side tranche with a // lower index, e.g. lower than 10% at index 1 let int_per_sec = Rate::one() / Rate::saturating_from_integer(SECS_PER_YEAR); let min_risk_buffer = Perquintill::from_rational(4u64, 5); @@ -2144,7 +2144,7 @@ pub mod test { let mut tranches = default_tranches(); let min_risk_buffer = Perquintill::from_rational(4u64, 5); - // ensure we have an interest rate larger than the the right-side tranche with a + // ensure we have an interest rate larger than the right-side tranche with a // greater index, e.g. larger than 5% at index 2 let int_per_sec = Rate::saturating_from_rational(6u64, 100) / Rate::saturating_from_integer(SECS_PER_YEAR) diff --git a/runtime/integration-tests/src/cases/block_rewards.rs b/runtime/integration-tests/src/cases/block_rewards.rs index adbcdd4c80..941b566d14 100644 --- a/runtime/integration-tests/src/cases/block_rewards.rs +++ b/runtime/integration-tests/src/cases/block_rewards.rs @@ -136,7 +136,7 @@ fn apply_and_check_session( // The event exists in this list: dbg!(frame_system::Pallet::::events()) - // But not in in this list (that is the implementation of find_event()), + // But not in this list (that is the implementation of find_event()), // so try_into returns an Err for it. dbg!(frame_system::Pallet::::events() .into_iter()