From c02eed6599512a718ca5d4cdf646ce026079276f Mon Sep 17 00:00:00 2001 From: Jean Marchand Date: Fri, 11 Mar 2022 16:39:28 +0100 Subject: [PATCH] lang: fix seed examples in Accounts proc macro docs (#1596) --- lang/derive/accounts/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/derive/accounts/src/lib.rs b/lang/derive/accounts/src/lib.rs index 66fbdfec8..7cf5ee4f5 100644 --- a/lang/derive/accounts/src/lib.rs +++ b/lang/derive/accounts/src/lib.rs @@ -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() /// )]