Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some typos #6372

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions governance/program/src/state/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion governance/program/src/state/proposal_deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libraries/concurrent-merkle-tree/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion token/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
12 changes: 6 additions & 6 deletions token/cli/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Mint>::unpack(new_account_disbale.data).unwrap();
StateWithExtensionsOwned::<Mint>::unpack(new_account_disable.data).unwrap();

let new_extension_disable = new_mint_state_disable
.get_extension::<MetadataPointer>()
Expand Down Expand Up @@ -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::<Mint>::unpack(new_account_disbale.data).unwrap();
StateWithExtensionsOwned::<Mint>::unpack(new_account_disable.data).unwrap();

let new_extension_disable = new_mint_state_disable
.get_extension::<GroupPointer>()
Expand Down Expand Up @@ -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::<Mint>::unpack(new_account_disbale.data).unwrap();
StateWithExtensionsOwned::<Mint>::unpack(new_account_disable.data).unwrap();

let new_extension_disable = new_mint_state_disable
.get_extension::<GroupMemberPointer>()
Expand Down
Loading