Sfoglia il codice sorgente

Fix typos in comments (#2868)

dongjinlong 1 anno fa
parent
commit
c2cd5a99aa

+ 1 - 1
lang/syn/src/codegen/program/dispatch.rs

@@ -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],

+ 2 - 2
tests/lockup/tests/lockup.js

@@ -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
@@ -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,

+ 1 - 1
tests/zero-copy/tests/zero-copy.js

@@ -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,

+ 1 - 1
ts/packages/anchor/src/program/accounts-resolver.ts

@@ -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>> = {};