浏览代码

docs: Update rent_exempt constraint (#389)

Armani Ferrante 4 年之前
父节点
当前提交
60cdefea55
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/src/tutorials/tutorial-1.md

+ 1 - 1
docs/src/tutorials/tutorial-1.md

@@ -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`).