Skip to content

Commit

Permalink
[+] v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMaka committed Oct 12, 2024
1 parent b8fb524 commit cb1f4b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ View cont.. exposed functions that take or return Kawala types
}
// remove a word, remove last if out of bounds
pub fn __remove(&mut self, index : usize) -> Word {
Some(self.page.remove(index)) . unwrap_or(Word::from_bytes(&EMPTY_BYTES32))
Some(self.page.remove(self._id(index)))
. unwrap_or(Word::from_bytes(&EMPTY_BYTES32))
}

/*
Expand Down

0 comments on commit cb1f4b8

Please sign in to comment.