Forráskód Böngészése

doc typo: `AccountInfo::try_borrow_mut_lamports()` (#257)

Jose Santos 2 hónapja
szülő
commit
19b243500f
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      sdk/pinocchio/src/account_info.rs

+ 1 - 1
sdk/pinocchio/src/account_info.rs

@@ -299,7 +299,7 @@ impl AccountInfo {
         })
     }
 
-    /// 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
     /// is already borrowed in any form.
     pub fn try_borrow_mut_lamports(&self) -> Result<RefMut<u64>, ProgramError> {
         // check if the account lamports are already borrowed