From 4a91606895e970c257971b2a92ac741be5f678cd Mon Sep 17 00:00:00 2001 From: Tristan Edwards Date: Sun, 19 Sep 2021 16:01:02 +0100 Subject: [PATCH] docs: Replace `ProgramAccount` with `Account` (#758) --- docs/src/tutorials/tutorial-1.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/tutorials/tutorial-1.md b/docs/src/tutorials/tutorial-1.md index d6dfc05a9..ac529b6c7 100644 --- a/docs/src/tutorials/tutorial-1.md +++ b/docs/src/tutorials/tutorial-1.md @@ -35,8 +35,7 @@ Additionally, notice how we take a mutable reference to `my_account` and assign the `data` to it. This leads us to the `Initialize` struct, deriving `Accounts`. There are two things to notice about `Initialize`. -1. The `my_account` field is of type `ProgramAccount<'info, MyAccount>`, telling the program it *must* -be **owned** by the currently executing program, and the deserialized data structure is `MyAccount`. +1. The `my_account` field is of type `Account<'info, MyAccount>` and the deserialized data structure is `MyAccount`. 2. The `my_account` field is marked with the `init` attribute. This will create a new account owned by the current program, zero initialized. When using `init`, one must also provide `payer`, which will fund the account creation, `space`, which defines how large the account should be,