Эх сурвалжийг харах

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

Notorious D.E.V. 8 сар өмнө
parent
commit
b4707889d7

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

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