Skip to content

Commit

Permalink
Fix typos in comments (#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjinlong authored Mar 27, 2024
1 parent 0f60909 commit c2cd5a9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lang/syn/src/codegen/program/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn generate(program: &Program) -> proc_macro2::TokenStream {
///
/// Each method in an anchor program is uniquely defined by a namespace
/// and a rust identifier (i.e., the name given to the method). These
/// two pieces can be combined to creater a method identifier,
/// two pieces can be combined to create a method identifier,
/// specifically, Anchor uses
///
/// Sha256("<namespace>:<rust-identifier>")[..8],
Expand Down
4 changes: 2 additions & 2 deletions tests/lockup/tests/lockup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { assert } = require("chai");
const nativeAssert = require("assert");

describe("Lockup and Registry", () => {
// Read the provider from the configured environmnet.
// Read the provider from the configured environments.
const provider = anchor.AnchorProvider.env();
// hack so we don't have to update serum-common library
// to the new AnchorProvider class and Provider interface
Expand Down Expand Up @@ -934,7 +934,7 @@ describe("Lockup and Registry", () => {
assert.isTrue(tokenAccount.amount.eq(withdrawAmount));
});
it("Should succesfully unlock a locked reward after unstaking", async () => {
it("Should successfully unlock a locked reward after unstaking", async () => {
const token = await serumCmn.createTokenAccount(
provider,
mint,
Expand Down
2 changes: 1 addition & 1 deletion tests/zero-copy/tests/zero-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe("zero-copy", () => {
);
});

it("Updates a a second zero copy account field", async () => {
it("Updates a second zero copy account field", async () => {
await program.rpc.updateFooSecond(new BN(55), {
accounts: {
foo: foo.publicKey,
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/anchor/src/program/accounts-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export class AccountsResolver<IDL extends Idl> {
}
}

// TODO: this should be configureable to avoid unnecessary requests.
// TODO: this should be configurable to avoid unnecessary requests.
class AccountStore<IDL extends Idl> {
private _cache = new Map<string, any>();
private _idls: Record<string, AccountNamespace<any>> = {};
Expand Down

0 comments on commit c2cd5a9

Please sign in to comment.