Browse Source

lang, cli: Fix typos (#229)

guanqun 4 years ago
parent
commit
a108354536
3 changed files with 3 additions and 3 deletions
  1. 1 1
      cli/src/main.rs
  2. 1 1
      lang/src/idl.rs
  3. 1 1
      lang/src/lib.rs

+ 1 - 1
cli/src/main.rs

@@ -55,7 +55,7 @@ pub enum Command {
         /// Output directory for the IDL.
         #[clap(short, long)]
         idl: Option<String>,
-        /// True if the build artifiact needs to be deterministic and verifiable.
+        /// True if the build artifact needs to be deterministic and verifiable.
         #[clap(short, long)]
         verifiable: bool,
     },

+ 1 - 1
lang/src/idl.rs

@@ -41,7 +41,7 @@ pub enum IdlInstruction {
     SetAuthority { new_authority: Pubkey },
 }
 
-// Accounts for the Create instuction.
+// Accounts for the Create instruction.
 pub type IdlCreateAccounts<'info> = crate::ctor::Ctor<'info>;
 
 // Accounts for Idl instructions.

+ 1 - 1
lang/src/lib.rs

@@ -88,7 +88,7 @@ pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized {
     ) -> Result<Self, ProgramError>;
 }
 
-/// The exit procedure for an account. Any cleanup or persistance to storage
+/// The exit procedure for an account. Any cleanup or persistence to storage
 /// should be done here.
 pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> {
     /// `program_id` is the currently executing program.