chore: fix typos (#3710)

This commit is contained in:
Zero Xplorer 2025-07-08 17:19:44 +12:00 committed by GitHub
parent 73fc4835e0
commit c803484aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ pub fn generate(accs: &AccountsStruct) -> proc_macro2::TokenStream {
// we can't leverage the try_accounts implementation for zero and init.
if f.is_optional {
// Thus, this block essentially reimplements the try_accounts
// behavior with optional accounts minus the deserialziation.
// behavior with optional accounts minus the deserialization.
let empty_behavior = if cfg!(feature = "allow-missing-optionals") {
quote!{ None }
} else {

View File

@ -79,7 +79,7 @@ pub fn generate(program: &Program) -> proc_macro2::TokenStream {
/// instructions, where each method handler in the `#[program]` mod is
/// associated with a struct defining the input arguments to the
/// method. These should be used directly, when one wants to serialize
/// Anchor instruction data, for example, when speciying
/// Anchor instruction data, for example, when specifying
/// instructions on a client.
pub mod instruction {
use super::*;

View File

@ -198,7 +198,7 @@ fn constraints_cross_checks(fields: &[AccountField]) -> ParseResult<()> {
}
}
// Make sure initialiazed token accounts are always declared after their corresponding mint.
// Make sure initialized token accounts are always declared after their corresponding mint.
InitKind::Mint { .. } => {
if init_fields.iter().enumerate().any(|(f_pos, f)| {
match &f.constraints.init.as_ref().unwrap().kind {

View File

@ -6,7 +6,7 @@ macro_rules! impl_idl_build {
impl anchor_lang::IdlBuild for $ty {}
// This is not used for the IDL generation since default `IdlBuild` impl doesn't include
// the type in the IDL but it stil needs to be added in order to make compilation work.
// the type in the IDL but it still needs to be added in order to make compilation work.
//
// TODO: Find a better way to handle discriminators of wrapped external accounts.
impl anchor_lang::Discriminator for $ty {