瀏覽代碼

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

Jose Santos 2 月之前
父節點
當前提交
19b243500f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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