From 14b82d1aa51db7d127e4dc22b3068ca07a78c7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20Moravec?= Date: Fri, 29 Dec 2023 17:03:39 +0100 Subject: [PATCH] fix: typos --- minisql/src/internals/column_index.rs | 2 +- minisql/src/interpreter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minisql/src/internals/column_index.rs b/minisql/src/internals/column_index.rs index d69f615..f6c2a43 100644 --- a/minisql/src/internals/column_index.rs +++ b/minisql/src/internals/column_index.rs @@ -33,7 +33,7 @@ impl ColumnIndex { pub fn remove(&mut self, value: &IndexableValue, id_to_be_removed: Uuid) -> bool { match self.index.get_mut(value) { Some(ids) => { - ids.remove(&id_to_be_removed) // true iff was present + ids.remove(&id_to_be_removed) // true if was present } None => false, } diff --git a/minisql/src/interpreter.rs b/minisql/src/interpreter.rs index e480e82..8bce46b 100644 --- a/minisql/src/interpreter.rs +++ b/minisql/src/interpreter.rs @@ -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. fn update_index_from_table( column_index: &mut ColumnIndex,