Fixed typo: occurence -> occurrence (#3)

This commit is contained in:
Semen Zhydenko
2022-12-27 16:44:37 +01:00
committed by GitHub
parent df72f13e9d
commit 9e1c0ca322

View File

@@ -93,7 +93,7 @@ which avoids the problem of creating a self-referential struct.
## Task 3 - Merge Iterator ## 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*. 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: The iterator at the lower index position of the `new` function has higher priority, that is to say, if we have: