Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 463d630

Browse files
committed
Fix typo
1 parent 14774fc commit 463d630

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

program/src/processor/shared/initialize_account.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ pub fn process_initialize_account(
4141
let new_account_info_data_len = new_account_info.data_len();
4242

4343
let minimum_balance = if rent_sysvar_account {
44-
let rent_sysvar_info = remaning.first().ok_or(ProgramError::NotEnoughAccountKeys)?;
44+
let rent_sysvar_info = remaining
45+
.first()
46+
.ok_or(ProgramError::NotEnoughAccountKeys)?;
4547
// SAFETY: single immutable borrow to `rent_sysvar_info`; account ID and length are
4648
// checked by `from_account_info_unchecked`.
4749
let rent = unsafe { Rent::from_account_info_unchecked(rent_sysvar_info)? };

0 commit comments

Comments
 (0)