From 9e1c0ca3229a28c19c36d0a597b619494652e3f4 Mon Sep 17 00:00:00 2001 From: Semen Zhydenko Date: Tue, 27 Dec 2022 16:44:37 +0100 Subject: [PATCH] Fixed typo: occurence -> occurrence (#3) --- mini-lsm-book/src/03-memtable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-lsm-book/src/03-memtable.md b/mini-lsm-book/src/03-memtable.md index 3bd7123..1ba093f 100644 --- a/mini-lsm-book/src/03-memtable.md +++ b/mini-lsm-book/src/03-memtable.md @@ -93,7 +93,7 @@ which avoids the problem of creating a self-referential struct. ## Task 3 - Merge Iterator -Now that you have a lot of mem-tables and SSTs, you might want to merge them to get the latest occurence of a key. +Now that you have a lot of mem-tables and SSTs, you might want to merge them to get the latest occurrence of a key. In `merge_iterator.rs`, we have `MergeIterator`, which is an iterator that merges all iterators *of the same type*. The iterator at the lower index position of the `new` function has higher priority, that is to say, if we have: