Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 122dab3

Browse files
authored
all: fix doc comments (#6646)
1 parent 5ce4e9f commit 122dab3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

account-compression/programs/account-compression/src/canopy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub fn fill_in_proof_from_canopy(
122122
node_idx >>= 1;
123123
}
124124
// We only want to add inferred canopy nodes such that the proof length
125-
// is equal to the tree depth. If the lengh of proof + lengh of canopy nodes is
125+
// is equal to the tree depth. If the length of proof + length of canopy nodes is
126126
// less than the tree depth, the instruction will fail.
127127
let overlap = (proof.len() + inferred_nodes.len()).saturating_sub(max_depth as usize);
128128
proof.extend(inferred_nodes.iter().skip(overlap));

governance/program/src/state/proposal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl ProposalV2 {
270270
.map_err(|_| GovernanceError::InvalidStateCannotEditSignatories.into())
271271
}
272272

273-
/// Checks if Proposal can be singed off
273+
/// Checks if Proposal can be signed off
274274
pub fn assert_can_sign_off(&self) -> Result<(), ProgramError> {
275275
match self.state {
276276
ProposalState::Draft | ProposalState::SigningOff => Ok(()),

single-pool/cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ async fn command_withdraw(config: &Config, command_config: WithdrawCli) -> Comma
408408
let stake_account = Keypair::new();
409409
let stake_account_address = stake_account.pubkey();
410410

411-
// since we cant infer pool from token account, the withdraw invocation is
411+
// since we can't infer pool from token account, the withdraw invocation is
412412
// rather simpler first get the pool address
413413
let pool_address = pool_address_from_args(
414414
command_config.pool_address,

single-pool/program/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl SinglePool {
4646
}
4747

4848
// pool vote account address is properly configured. in practice this is
49-
// irrefutable because the pool is initialized from the addresss that
49+
// irrefutable because the pool is initialized from the address that
5050
// derives it, and never modified
5151
if *account_info.key != find_pool_address(program_id, &pool.vote_account_address) {
5252
return Err(SinglePoolError::InvalidPoolAccount.into());

token-group/example/src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub fn process_initialize_member(_program_id: &Pubkey, accounts: &[AccountInfo])
178178
}
179179
}
180180

181-
// Make sure the member account is not the same as the group accout
181+
// Make sure the member account is not the same as the group account
182182
if member_info.key == group_info.key {
183183
return Err(TokenGroupError::MemberAccountIsGroupAccount.into());
184184
}

0 commit comments

Comments
 (0)