浏览代码

docs: Remove duplicate usage example of the `signer` constraint (#3534)

Notorious D.E.V. 8 月之前
父节点
当前提交
b4707889d7
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      docs/content/docs/references/account-constraints.mdx

+ 0 - 5
docs/content/docs/references/account-constraints.mdx

@@ -14,11 +14,6 @@ for implementation details.
 
 ### `#[account(signer)]`
 
-```rust title="attribute"
-#[account(signer)]
-#[account(signer @ <custom_error>)]
-```
-
 Description: Checks the given account signed the transaction. Consider using the
 Signer type if you would only have this constraint on the account.  
 Examples: [Github](https://github.com/solana-developers/anchor-examples/tree/main/account-constraints/signer)