docs: Update rent_exempt constraint (#389)

This commit is contained in:
Armani Ferrante 2021-06-15 19:06:25 -07:00 committed by GitHub
parent 796d917f42
commit 60cdefea55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ for the first time (and thus its data field is all zero). If `#[account(init)]`
when account data is zero initialized, the transaction will be rejected.
3. The `Rent` **sysvar** is required for the rent exemption check, which the framework enforces
by default for any account marked with `#[account(init)]`. To be more explicit about the check,
one can specify `#[account(init, rent_exempt)]`. To skip this check, (and thus
one can specify `#[account(init, rent_exempt = enforce)]`. To skip this check, (and thus
allowing you to omit the `Rent` acccount), you can specify
`#[account(init, rent_exempt = skip)]` on the account being initialized (here, `my_account`).