Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 5909599

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/aoc-ac' into aoc-ac
2 parents f4fe5f4 + e416430 commit 5909599

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/courses/onchain-development/anchor-cpi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ generic, allowing you to pass in any object that implements the `ToAccountMetas`
119119
and `ToAccountInfos<'info>` traits.
120120

121121
These traits are added by the `#[derive(Accounts)]` attribute macro you've used
122-
before for instruction accounts. This means you can use similar structs with
122+
before, to specify the accounts required by your instruction handlers. You can use also use `#[derive(Accounts)]` structs with
123123
`CpiContext`.
124124

125125
This helps with code organization and type safety.
126126

127-
#### Invoke an instruction on another Anchor program
127+
#### Invoke an instruction handler on another Anchor program
128128

129129
When calling another Anchor program with a published crate, Anchor can generate
130130
instruction builders and CPI helper functions for you.
@@ -144,7 +144,7 @@ The `cpi` module turns `callee`'s instructions into Rust functions. These
144144
functions take a `CpiContext` and any extra data needed for the instruction.
145145
They work just like the instruction functions in your Anchor programs, but use
146146
`CpiContext` instead of `Context`. The `cpi` module also provides the account
147-
structs needed for these instructions.
147+
structs needed for these instruction handler.
148148

149149
For example, if `callee` has the instruction `do_something` that requires the
150150
accounts defined in the `DoSomething` struct, you could invoke `do_something` as

0 commit comments

Comments
 (0)