Skip to content

Commit e04e599

Browse files
committed
More comments
1 parent 8e72b74 commit e04e599

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

programs/system/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub fn create_account_with_minimal_balance(
3535
};
3636

3737
if account.lamports() == 0 {
38+
// Create the account if it does not exist.
3839
CreateAccount {
3940
from: payer,
4041
to: account,
@@ -56,9 +57,10 @@ pub fn create_account_with_minimal_balance(
5657
.invoke()?;
5758
}
5859

60+
// Assign the account to the specified owner.
5961
Assign { account, owner }.invoke_signed(signers)?;
6062

61-
// Allocates the required space for the account.
63+
// Allocate the required space for the account.
6264
//
6365
// SAFETY: There are no active borrows of the `account`.
6466
// This was checked by the `Assign` CPI above.

0 commit comments

Comments
 (0)