Skip to content

Commit

Permalink
chore: remove repeat words (paritytech#4869)
Browse files Browse the repository at this point in the history
Signed-off-by: dashangcun <jchaodaohang@foxmail.com>
Co-authored-by: dashangcun <jchaodaohang@foxmail.com>
  • Loading branch information
dashangcun and haouvw authored Jun 24, 2024
1 parent 5e62782 commit 63e2644
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub trait Registrar {
/// Remove any lock on the para registration.
fn remove_lock(id: ParaId);

/// Register a Para ID under control of `who`. Registration may be be
/// Register a Para ID under control of `who`. Registration may be
/// delayed by session rotation.
fn register(
who: Self::AccountId,
Expand Down
2 changes: 1 addition & 1 deletion polkadot/xcm/pallet-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ pub mod pallet {
/// - `assets`: The assets to be withdrawn. This should include the assets used to pay the
/// fee on the `dest` (and possibly reserve) chains.
/// - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
/// - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
/// - `remote_fees_id`: One of the included `assets` to be used to pay fees.
/// - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
/// - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
/// transfer, which also determines what happens to the assets on the destination chain.
Expand Down
2 changes: 1 addition & 1 deletion polkadot/xcm/src/v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub enum BodyPart {
#[codec(compact)]
denom: u32,
},
/// More than than the given proportion of members of the body.
/// More than the given proportion of members of the body.
MoreThanProportion {
#[codec(compact)]
nom: u32,
Expand Down
2 changes: 1 addition & 1 deletion polkadot/xcm/src/v3/junction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ pub enum BodyPart {
#[codec(compact)]
denom: u32,
},
/// More than than the given proportion of members of the body.
/// More than the given proportion of members of the body.
MoreThanProportion {
#[codec(compact)]
nom: u32,
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/network/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

//! Network event types. These are are not the part of the protocol, but rather
//! Network event types. These are not the part of the protocol, but rather
//! events that happen on the network like DHT get/put results received.
use crate::types::ProtocolName;
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ fn nominators_also_get_slashed_pro_rata() {
#[test]
fn double_staking_should_fail() {
// should test (in the same order):
// * an account already bonded as stash cannot be be stashed again.
// * an account already bonded as stash cannot be stashed again.
// * an account already bonded as stash cannot nominate.
// * an account already bonded as controller can nominate.
ExtBuilder::default().try_state(false).build_and_execute(|| {
Expand Down
2 changes: 1 addition & 1 deletion substrate/test-utils/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ pub mod storage_key_generator {
sp_crypto_hashing::twox_64(x).iter().chain(x.iter()).cloned().collect()
}

/// Generate the hashed storage keys from the raw literals. These keys are expected to be be in
/// Generate the hashed storage keys from the raw literals. These keys are expected to be in
/// storage with given substrate-test runtime.
pub fn generate_expected_storage_hashed_keys(custom_heap_pages: bool) -> Vec<String> {
let mut literals: Vec<&[u8]> = vec![b":code", b":extrinsic_index"];
Expand Down

0 comments on commit 63e2644

Please sign in to comment.