We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AccountInfo::try_borrow_mut_lamports()
1 parent 3044aaf commit 19b2435Copy full SHA for 19b2435
sdk/pinocchio/src/account_info.rs
@@ -299,7 +299,7 @@ impl AccountInfo {
299
})
300
}
301
302
- /// Tries to get a read only reference to the lamport field, failing if the field
+ /// Tries to get a mutable reference to the lamport field, failing if the field
303
/// is already borrowed in any form.
304
pub fn try_borrow_mut_lamports(&self) -> Result<RefMut<u64>, ProgramError> {
305
// check if the account lamports are already borrowed
0 commit comments