From bcb4864412cda2326e8613244c480318dd4200d6 Mon Sep 17 00:00:00 2001 From: gcmutator <329964069@qq.com> Date: Sat, 9 Mar 2024 10:24:27 +0800 Subject: [PATCH] fix some typos Signed-off-by: gcmutator <329964069@qq.com> --- governance/program/src/state/governance.rs | 6 +++--- governance/program/src/state/proposal_deposit.rs | 2 +- libraries/concurrent-merkle-tree/src/error.rs | 2 +- token/cli/src/command.rs | 2 +- token/cli/tests/command.rs | 12 ++++++------ 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/governance/program/src/state/governance.rs b/governance/program/src/state/governance.rs index 98fda341ae5..cad05625584 100644 --- a/governance/program/src/state/governance.rs +++ b/governance/program/src/state/governance.rs @@ -380,12 +380,12 @@ impl GovernanceV2 { /// Returns the required deposit amount for creating Nth Proposal based on /// the number of active proposals where N equals to /// active_proposal_count - deposit_exempt_proposal_count The deposit is - /// not payed unless there are more active Proposal than the exempt amount + /// not paid unless there are more active Proposal than the exempt amount /// - /// Note: The exact deposit payed for Nth Proposal is + /// Note: The exact deposit paid for Nth Proposal is /// N*SECURITY_DEPOSIT_BASE_LAMPORTS + min_rent_for(ProposalDeposit) /// - /// Note: Although the deposit amount payed for Nth proposal is linear the + /// Note: Although the deposit amount paid for Nth proposal is linear the /// total deposit amount required to create N proposals is sum of arithmetic /// series Dn = N*r + d*N*(N+1)/2 // where: diff --git a/governance/program/src/state/proposal_deposit.rs b/governance/program/src/state/proposal_deposit.rs index e07c54a2003..fa9c43bfed0 100644 --- a/governance/program/src/state/proposal_deposit.rs +++ b/governance/program/src/state/proposal_deposit.rs @@ -20,7 +20,7 @@ pub struct ProposalDeposit { /// The Proposal the deposit belongs to pub proposal: Pubkey, - /// The account which payed for the deposit + /// The account which paid for the deposit pub deposit_payer: Pubkey, /// Reserved diff --git a/libraries/concurrent-merkle-tree/src/error.rs b/libraries/concurrent-merkle-tree/src/error.rs index 0c31a9cdaca..16083211909 100644 --- a/libraries/concurrent-merkle-tree/src/error.rs +++ b/libraries/concurrent-merkle-tree/src/error.rs @@ -36,7 +36,7 @@ pub enum ConcurrentMerkleTreeError { #[error("This tree's current leaf value does not match the supplied proof's leaf value")] LeafContentsModified, - /// Tree has at least 1 non-EMTPY leaf + /// Tree has at least 1 non-EMPTY leaf #[error("Tree is not empty")] TreeNonEmpty, } diff --git a/token/cli/src/command.rs b/token/cli/src/command.rs index e25a27c197b..d9e5d352c7e 100644 --- a/token/cli/src/command.rs +++ b/token/cli/src/command.rs @@ -4091,7 +4091,7 @@ pub async fn process_command<'a>( match config.output_format { OutputFormat::Json | OutputFormat::JsonCompact => { eprintln!( - "`spl-token gc` does not support the `--ouput` parameter at this time" + "`spl-token gc` does not support the `--output` parameter at this time" ); exit(1); } diff --git a/token/cli/tests/command.rs b/token/cli/tests/command.rs index 5111170ed60..7378886ffba 100644 --- a/token/cli/tests/command.rs +++ b/token/cli/tests/command.rs @@ -3402,9 +3402,9 @@ async fn metadata_pointer(test_validator: &TestValidator, payer: &Keypair) { ) .await; - let new_account_disbale = config.rpc_client.get_account(&mint).await.unwrap(); + let new_account_disable = config.rpc_client.get_account(&mint).await.unwrap(); let new_mint_state_disable = - StateWithExtensionsOwned::::unpack(new_account_disbale.data).unwrap(); + StateWithExtensionsOwned::::unpack(new_account_disable.data).unwrap(); let new_extension_disable = new_mint_state_disable .get_extension::() @@ -3485,9 +3485,9 @@ async fn group_pointer(test_validator: &TestValidator, payer: &Keypair) { .await .unwrap(); - let new_account_disbale = config.rpc_client.get_account(&mint).await.unwrap(); + let new_account_disable = config.rpc_client.get_account(&mint).await.unwrap(); let new_mint_state_disable = - StateWithExtensionsOwned::::unpack(new_account_disbale.data).unwrap(); + StateWithExtensionsOwned::::unpack(new_account_disable.data).unwrap(); let new_extension_disable = new_mint_state_disable .get_extension::() @@ -3570,9 +3570,9 @@ async fn group_member_pointer(test_validator: &TestValidator, payer: &Keypair) { ) .await; - let new_account_disbale = config.rpc_client.get_account(&mint).await.unwrap(); + let new_account_disable = config.rpc_client.get_account(&mint).await.unwrap(); let new_mint_state_disable = - StateWithExtensionsOwned::::unpack(new_account_disbale.data).unwrap(); + StateWithExtensionsOwned::::unpack(new_account_disable.data).unwrap(); let new_extension_disable = new_mint_state_disable .get_extension::()