lang: fix seed examples in Accounts proc macro docs (#1596)
This commit is contained in:
parent
b149fc522a
commit
c02eed6599
|
@ -163,7 +163,7 @@ use syn::parse_macro_input;
|
|||
/// pub struct Initialize<'info> {
|
||||
/// #[account(
|
||||
/// init, payer = payer, space = 8 + 8
|
||||
/// seeds = [b"example_seed".as_ref()], bump = bump
|
||||
/// seeds = [b"example_seed"], bump = bump
|
||||
/// )]
|
||||
/// pub pda_data_account: Account<'info, MyData>,
|
||||
/// #[account(
|
||||
|
@ -174,7 +174,7 @@ use syn::parse_macro_input;
|
|||
/// #[account(
|
||||
/// init, payer = payer, space = 8 + 8,
|
||||
/// owner = other_program.key(),
|
||||
/// seeds = [b"other_seed".as_ref()], bump
|
||||
/// seeds = [b"other_seed"], bump
|
||||
/// )]
|
||||
/// pub pda_for_other_program: AccountInfo<'info>,
|
||||
/// #[account(mut)]
|
||||
|
@ -250,18 +250,18 @@ use syn::parse_macro_input;
|
|||
/// #[derive(Accounts)]
|
||||
/// #[instruction(first_bump: u8, second_bump: u8)]
|
||||
/// pub struct Example {
|
||||
/// #[account(seeds = [b"example_seed], bump)]
|
||||
/// #[account(seeds = [b"example_seed"], bump)]
|
||||
/// pub canonical_pda: AccountInfo<'info>,
|
||||
/// #[account(
|
||||
/// seeds = [b"example_seed],
|
||||
/// seeds = [b"example_seed"],
|
||||
/// bump,
|
||||
/// seeds::program = other_program.key()
|
||||
/// )]
|
||||
/// pub canonical_pda_two: AccountInfo<'info>,
|
||||
/// #[account(seeds = [b"other_seed], bump = first_bump)]
|
||||
/// #[account(seeds = [b"other_seed"], bump = first_bump)]
|
||||
/// pub arbitrary_pda: AccountInfo<'info>
|
||||
/// #[account(
|
||||
/// seeds = [b"other_seed],
|
||||
/// seeds = [b"other_seed"],
|
||||
/// bump = second_bump,
|
||||
/// seeds::program = other_program.key()
|
||||
/// )]
|
||||
|
|
Loading…
Reference in New Issue