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

Commit 387bfc5

Browse files
authored
fix some comments (#6318)
Signed-off-by: cui fliter <[email protected]>
1 parent 304e500 commit 387bfc5

File tree

20 files changed

+21
-21
lines changed

20 files changed

+21
-21
lines changed

account-compression/sdk/tests/accountCompression.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ describe('Account Compression', () => {
196196

197197
assert(
198198
splCMT.getAuthority().equals(randomSigner),
199-
`Upon transfering authority, authority should be ${randomSigner.toString()}, but was instead updated to ${splCMT.getAuthority()}`
199+
`Upon transferring authority, authority should be ${randomSigner.toString()}, but was instead updated to ${splCMT.getAuthority()}`
200200
);
201201

202202
// Attempting to replace with new authority now works
@@ -342,7 +342,7 @@ describe('Account Compression', () => {
342342

343343
try {
344344
await execute(provider, [replaceIx], [payerKeypair]);
345-
assert(false, 'Attacker was able to succesfully write fake existence of a leaf');
345+
assert(false, 'Attacker was able to successfully write fake existence of a leaf');
346346
} catch (e) {}
347347

348348
const splCMT = await ConcurrentMerkleTreeAccount.fromAccountAddress(connection, cmt);

docs/src/transfer-hook-interface/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ instruction for some other program, which may not need them, if that program is
136136
going to CPI to your transfer hook program, it needs to have the proper
137137
accounts.
138138

139-
Additionally, in order to perform a succesful dynamic account resolution, the
139+
Additionally, in order to perform a successful dynamic account resolution, the
140140
proper instruction needs to be provided to align with the instruction that was
141141
configured in the validation account - in this case the Transfer Hook
142142
interface's `ExecuteInstruction`. This is why we first create an

governance/program/src/state/legacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub struct ProposalV1 {
212212
/// The number of instructions included in the proposal
213213
pub instructions_count: u16,
214214

215-
/// The index of the the next instruction to be added
215+
/// The index of the next instruction to be added
216216
pub instructions_next_index: u16,
217217

218218
/// When the Proposal was created and entered Draft state

governance/program/src/state/proposal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub struct ProposalOption {
6565
/// The number of transactions included in the option
6666
pub transactions_count: u16,
6767

68-
/// The index of the the next transaction to be added
68+
/// The index of the next transaction to be added
6969
pub transactions_next_index: u16,
7070
}
7171

libraries/math/src/precise_number.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn zero() -> InnerUint {
2929

3030
impl PreciseNumber {
3131
/// Correction to apply to avoid truncation errors on division. Since
32-
/// integer operations will always floor the result, we artifically bump it
32+
/// integer operations will always floor the result, we artificially bump it
3333
/// up by one half to get the expect result.
3434
fn rounding_correction() -> InnerUint {
3535
InnerUint::from(ONE / 2)

libraries/merkle-tree-reference/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn recompute(mut leaf: Node, proof: &[Node], index: u32) -> Node {
3131
leaf
3232
}
3333

34-
// Off-chain implentation to keep track of nodes
34+
// Off-chain implementation to keep track of nodes
3535
pub struct MerkleTree {
3636
pub leaf_nodes: Vec<Rc<RefCell<TreeNode>>>,
3737
pub root: Node,

libraries/tlv-account-resolution/src/account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub struct ExtraAccountMeta {
8484
/// Whether the account should be writable
8585
pub is_writable: PodBool,
8686
}
87-
/// Helper used to to know when the top bit is set, to interpret the
87+
/// Helper used to know when the top bit is set, to interpret the
8888
/// discriminator as an index rather than as a type
8989
const U8_TOP_BIT: u8 = 1 << 7;
9090
impl ExtraAccountMeta {

libraries/type-length-value/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ let value2 = state.get_value_with_repetition::<MyOtherPodValue>(2).unwrap();
9595

9696
The Solana blockchain exposes slabs of bytes to on-chain programs, allowing program
9797
writers to interpret these bytes and change them however they wish. Currently,
98-
programs interpet account bytes as being only of one type. For example, an token
98+
programs interpret account bytes as being only of one type. For example, an token
9999
mint account is only ever a token mint, an AMM pool account is only ever an AMM pool,
100100
a token metadata account can only hold token metadata, etc.
101101

name-service/program/src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Processor {
8585
// Issue the name registry account
8686
// The creation is done in three steps: transfer, allocate and assign, because
8787
// one cannot `system_instruction::create` an account to which lamports have
88-
// been transfered before.
88+
// been transferred before.
8989
invoke(
9090
&system_instruction::transfer(payer_account.key, &name_account_key, lamports),
9191
&[

stake-pool/cli/scripts/withdraw.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ create_keypair $authority
6868
echo "Withdrawing stakes from stake pool"
6969
withdraw_stakes "$stake_pool_pubkey" "$validator_list" "$withdraw_sol_amount"
7070

71-
echo "Withdrawing stakes from stake pool to recieve it in stake receiver account"
71+
echo "Withdrawing stakes from stake pool to receive it in stake receiver account"
7272
withdraw_stakes_to_stake_receiver "$stake_pool_pubkey" "$validator_list" "$withdraw_sol_amount"
7373

7474
echo "Withdrawing SOL from stake pool to authority"

0 commit comments

Comments
 (0)