Skip to content

Commit

Permalink
fix: typo initilize -> initiAlize (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicfromnewyoke authored Nov 17, 2024
1 parent f0eac8f commit d854c65
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion programs/token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Initializing a mint account:
```rust
// This example assumes that the instruction receives a writable `mint`
// account; `authority` is a `Pubkey`.
InitilizeMint {
InitializeMint {
mint,
rent_sysvar,
decimals: 9,
Expand Down
4 changes: 2 additions & 2 deletions programs/token/src/instructions/initialize_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use pinocchio::{
/// 1. `[]` The mint this account will be associated with.
/// 2. `[]` The new account's owner/multisignature.
/// 3. `[]` Rent sysvar
pub struct InitilizeAccount<'a> {
pub struct InitializeAccount<'a> {
/// New Account.
pub token: &'a AccountInfo,
/// Mint Account.
Expand All @@ -23,7 +23,7 @@ pub struct InitilizeAccount<'a> {
pub rent_sysvar: &'a AccountInfo,
}

impl<'a> InitilizeAccount<'a> {
impl<'a> InitializeAccount<'a> {
#[inline(always)]
pub fn invoke(&self) -> ProgramResult {
self.invoke_signed(&[])
Expand Down
4 changes: 2 additions & 2 deletions programs/token/src/instructions/initialize_account_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::{write_bytes, UNINIT_BYTE};
/// 0. `[WRITE]` The account to initialize.
/// 1. `[]` The mint this account will be associated with.
/// 3. `[]` Rent sysvar
pub struct InitilizeAccount2<'a> {
pub struct InitializeAccount2<'a> {
/// New Account.
pub token: &'a AccountInfo,
/// Mint Account.
Expand All @@ -27,7 +27,7 @@ pub struct InitilizeAccount2<'a> {
pub owner: &'a Pubkey,
}

impl<'a> InitilizeAccount2<'a> {
impl<'a> InitializeAccount2<'a> {
#[inline(always)]
pub fn invoke(&self) -> ProgramResult {
self.invoke_signed(&[])
Expand Down
4 changes: 2 additions & 2 deletions programs/token/src/instructions/initialize_account_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{write_bytes, UNINIT_BYTE};
/// ### Accounts:
/// 0. `[WRITE]` The account to initialize.
/// 1. `[]` The mint this account will be associated with.
pub struct InitilizeAccount3<'a> {
pub struct InitializeAccount3<'a> {
/// New Account.
pub token: &'a AccountInfo,
/// Mint Account.
Expand All @@ -24,7 +24,7 @@ pub struct InitilizeAccount3<'a> {
pub owner: &'a Pubkey,
}

impl<'a> InitilizeAccount3<'a> {
impl<'a> InitializeAccount3<'a> {
#[inline(always)]
pub fn invoke(&self) -> ProgramResult {
self.invoke_signed(&[])
Expand Down
4 changes: 2 additions & 2 deletions programs/token/src/instructions/initialize_mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{write_bytes, UNINIT_BYTE};
/// ### Accounts:
/// 0. `[WRITABLE]` Mint account
/// 1. `[]` Rent sysvar
pub struct InitilizeMint<'a> {
pub struct InitializeMint<'a> {
/// Mint Account.
pub mint: &'a AccountInfo,
/// Rent sysvar Account.
Expand All @@ -28,7 +28,7 @@ pub struct InitilizeMint<'a> {
pub freeze_authority: Option<&'a Pubkey>,
}

impl<'a> InitilizeMint<'a> {
impl<'a> InitializeMint<'a> {
#[inline(always)]
pub fn invoke(&self) -> ProgramResult {
self.invoke_signed(&[])
Expand Down
4 changes: 2 additions & 2 deletions programs/token/src/instructions/initialize_mint_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::{write_bytes, UNINIT_BYTE};
///
/// ### Accounts:
/// 0. `[WRITABLE]` Mint account
pub struct InitilizeMint2<'a> {
pub struct InitializeMint2<'a> {
/// Mint Account.
pub mint: &'a AccountInfo,
/// Decimals.
Expand All @@ -25,7 +25,7 @@ pub struct InitilizeMint2<'a> {
pub freeze_authority: Option<&'a Pubkey>,
}

impl<'a> InitilizeMint2<'a> {
impl<'a> InitializeMint2<'a> {
#[inline(always)]
pub fn invoke(&self) -> ProgramResult {
self.invoke_signed(&[])
Expand Down

0 comments on commit d854c65

Please sign in to comment.