Skip to content

Commit ac90f4c

Browse files
authored
Update events.mdx (#3660)
Fixed typo :D
1 parent 34b6d19 commit ac90f4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/content/docs/features/events.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ describe("event-cpi", () => {
231231

232232
The
233233
[`event_cpi`](https://github.com/coral-xyz/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/event/src/lib.rs#L228-L237)
234-
attribute must be added to the `#[derive(Accounts)]` struct for the instruction
235-
instruction that emits events using the `emit_cpi!()` macro. This attribute
234+
attribute must be added to the `#[derive(Accounts)]` struct for the instruction that emits events using the `emit_cpi!()` macro. This attribute
236235
[automatically includes additional accounts](https://github.com/coral-xyz/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/parser/accounts/event_cpi.rs#L28-L70)
237236
that are required for the self CPI.
238237

0 commit comments

Comments
 (0)