From f1fa216d0ebc203c1556b905b5c098e7fd644446 Mon Sep 17 00:00:00 2001 From: 0x29a Date: Tue, 6 Feb 2024 11:38:07 +0800 Subject: [PATCH] chore: typos (#42) --- mini-lsm-mvcc/src/iterators/merge_iterator.rs | 2 +- mini-lsm-starter/src/iterators/merge_iterator.rs | 2 +- mini-lsm/src/iterators/merge_iterator.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mini-lsm-mvcc/src/iterators/merge_iterator.rs b/mini-lsm-mvcc/src/iterators/merge_iterator.rs index c4abc8d..b1f5bdf 100644 --- a/mini-lsm-mvcc/src/iterators/merge_iterator.rs +++ b/mini-lsm-mvcc/src/iterators/merge_iterator.rs @@ -37,7 +37,7 @@ impl Ord for HeapWrapper { } /// Merge multiple iterators of the same type. If the same key occurs multiple times in some -/// iterators, perfer the one with smaller index. +/// iterators, prefer the one with smaller index. pub struct MergeIterator { iters: BinaryHeap>, current: Option>, diff --git a/mini-lsm-starter/src/iterators/merge_iterator.rs b/mini-lsm-starter/src/iterators/merge_iterator.rs index 04eca06..c4fae54 100644 --- a/mini-lsm-starter/src/iterators/merge_iterator.rs +++ b/mini-lsm-starter/src/iterators/merge_iterator.rs @@ -39,7 +39,7 @@ impl Ord for HeapWrapper { } /// Merge multiple iterators of the same type. If the same key occurs multiple times in some -/// iterators, perfer the one with smaller index. +/// iterators, prefer the one with smaller index. pub struct MergeIterator { iters: BinaryHeap>, current: Option>, diff --git a/mini-lsm/src/iterators/merge_iterator.rs b/mini-lsm/src/iterators/merge_iterator.rs index c4abc8d..b1f5bdf 100644 --- a/mini-lsm/src/iterators/merge_iterator.rs +++ b/mini-lsm/src/iterators/merge_iterator.rs @@ -37,7 +37,7 @@ impl Ord for HeapWrapper { } /// Merge multiple iterators of the same type. If the same key occurs multiple times in some -/// iterators, perfer the one with smaller index. +/// iterators, prefer the one with smaller index. pub struct MergeIterator { iters: BinaryHeap>, current: Option>,