From b85eacb6c9bb406e693d65c3ca8130910e5a065d Mon Sep 17 00:00:00 2001 From: acheron Date: Mon, 13 Apr 2026 01:10:14 +0200 Subject: [PATCH] docs: Update `Context` lifetimes --- docs/content/docs/basics/program-structure.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/basics/program-structure.mdx b/docs/content/docs/basics/program-structure.mdx index cd72269981..afdc2e3232 100644 --- a/docs/content/docs/basics/program-structure.mdx +++ b/docs/content/docs/basics/program-structure.mdx @@ -145,14 +145,14 @@ The type provides the instruction with access to the following non-argument inputs: ```rust -pub struct Context<'a, 'b, 'c, 'info, T: Bumps> { +pub struct Context<'info, T: Bumps> { /// Currently executing program id. - pub program_id: &'a Pubkey, + pub program_id: &'info Pubkey, /// Deserialized accounts. - pub accounts: &'b mut T, + pub accounts: &'info mut T, /// Remaining accounts given but not deserialized or validated. /// Be very careful when using this directly. - pub remaining_accounts: &'c [AccountInfo<'info>], + pub remaining_accounts: &'info [AccountInfo<'info>], /// Bump seeds found during constraint validation. This is provided as a /// convenience so that handlers don't have to recalculate bump seeds or /// pass them in as arguments.