Skip to content

Commit

Permalink
chore: remove redundant words in comment
Browse files Browse the repository at this point in the history
Signed-off-by: goodfirm <fanyishang@yeah.net>
  • Loading branch information
goodfirm committed Dec 19, 2024
1 parent 6ca83c7 commit 7eed42d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pallets/liquidity-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ pub mod pallet {
Ok(general_index.index)
}

/// Returns the local currency identifier from from its general index.
/// Returns the local currency identifier from its general index.
///
/// Requires the currency to be registered in the `AssetRegistry`.
///
Expand Down
2 changes: 1 addition & 1 deletion pallets/pool-fees/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ pub mod pallet {
})
}

/// Return the the last fee id and bump it for the next query
/// Return the last fee id and bump it for the next query
pub(crate) fn generate_fee_id() -> Result<T::FeeId, ArithmeticError> {
LastFeeId::<T>::try_mutate(|last_fee_id| {
last_fee_id.ensure_add_assign(One::one())?;
Expand Down
2 changes: 1 addition & 1 deletion pallets/pool-system/src/tranches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/cases/block_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn apply_and_check_session<T: Runtime>(
// The event exists in this list:
dbg!(frame_system::Pallet::<T>::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::<T>::events()
.into_iter()
Expand Down

0 comments on commit 7eed42d

Please sign in to comment.