core: update btree.rs

postion -> position
This commit is contained in:
Ikko Eltociear Ashimine 2024-12-15 03:31:46 +09:00 committed by GitHub
parent 9aaf0869ae
commit 043fba2632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -700,7 +700,7 @@ impl BTreeCursor {
}
}
/* insert to postion and shift other pointers */
/* insert to position and shift other pointers */
fn insert_into_cell(&self, page: &mut PageContent, payload: &[u8], cell_idx: usize) {
let free = self.compute_free_space(page, RefCell::borrow(&self.database_header));
let enough_space = payload.len() + 2 <= free as usize;