fix: typos

This commit is contained in:
Jindřich Moravec 2023-12-29 17:03:39 +01:00
parent 1712bc0e0e
commit 14b82d1aa5
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ impl ColumnIndex {
pub fn remove(&mut self, value: &IndexableValue, id_to_be_removed: Uuid) -> bool { pub fn remove(&mut self, value: &IndexableValue, id_to_be_removed: Uuid) -> bool {
match self.index.get_mut(value) { match self.index.get_mut(value) {
Some(ids) => { Some(ids) => {
ids.remove(&id_to_be_removed) // true iff was present ids.remove(&id_to_be_removed) // true if was present
} }
None => false, None => false,
} }

View file

@ -144,7 +144,7 @@ impl State {
} }
} }
// Should be used in the case when an indexed is created after the table has existed for a // Should be used in the case when an index is created after the table has existed for a
// while. In such a case you need to build the index from the already existing rows. // while. In such a case you need to build the index from the already existing rows.
fn update_index_from_table( fn update_index_from_table(
column_index: &mut ColumnIndex, column_index: &mut ColumnIndex,