Skip to content

Commit

Permalink
lang: Fix token_program docs.rs documentation (#2918)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorerd authored Apr 19, 2024
1 parent 8e8df76 commit 7515c91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lang/derive/accounts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,32 +591,32 @@ use syn::parse_macro_input;
/// <br><br>
/// Example:
/// <pre>
/// use anchor_spl::{mint, token::{TokenAccount, Mint, Token}};
/// use anchor_spl::token_interface::{TokenInterface, TokenAccount, Mint};
/// ...&#10;
/// #[account(
/// mint::token_program = token_a_token_program,
/// )]
/// pub token_a_mint: Box<InterfaceAccount<'info, Mint>>,
/// pub token_a_mint: InterfaceAccount<'info, Mint>,
/// #[account(
/// mint::token_program = token_b_token_program,
/// )]
/// pub token_b_mint: Box<InterfaceAccount<'info, Mint>>,
/// pub token_b_mint: InterfaceAccount<'info, Mint>,
/// #[account(
/// init,
/// payer = payer,
/// token::mint = token_a_mint,
/// token::authority = payer,
/// token::token_program = token_a_token_program,
/// )]
/// pub token_a_account: Box<InterfaceAccount<'info, TokenAccount>>,
/// pub token_a_account: InterfaceAccount<'info, TokenAccount>,
/// #[account(
/// init,
/// payer = payer,
/// token::mint = token_b_mint,
/// token::authority = payer,
/// token::token_program = token_b_token_program,
/// )]
/// pub token_b_account: Box<InterfaceAccount<'info, TokenAccount>>,
/// pub token_b_account: InterfaceAccount<'info, TokenAccount>,
/// pub token_a_token_program: Interface<'info, TokenInterface>,
/// pub token_b_token_program: Interface<'info, TokenInterface>,
/// #[account(mut)]
Expand Down

0 comments on commit 7515c91

Please sign in to comment.