Skip to content

Commit

Permalink
fix: btree init_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Aug 26, 2023
1 parent 8620b4f commit eb6c2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/btreemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ where
pub fn init_v2(memory: M) -> Self {
if memory.size() == 0 {
// Memory is empty. Create a new map.
return BTreeMap::new(memory);
return BTreeMap::new_v2(memory);
}

// Check if the magic in the memory corresponds to a BTreeMap.
Expand Down

0 comments on commit eb6c2a3

Please sign in to comment.