浏览代码

Update events.mdx (#3660)

Fixed typo :D
Yehia 5 月之前
父节点
当前提交
ac90f4c96e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      docs/content/docs/features/events.mdx

+ 1 - 2
docs/content/docs/features/events.mdx

@@ -231,8 +231,7 @@ describe("event-cpi", () => {
 
 The
 [`event_cpi`](https://github.com/coral-xyz/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/event/src/lib.rs#L228-L237)
-attribute must be added to the `#[derive(Accounts)]` struct for the instruction
-instruction that emits events using the `emit_cpi!()` macro. This attribute
+attribute must be added to the `#[derive(Accounts)]` struct for the instruction that emits events using the `emit_cpi!()` macro. This attribute
 [automatically includes additional accounts](https://github.com/coral-xyz/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/parser/accounts/event_cpi.rs#L28-L70)
 that are required for the self CPI.