chore: typos (#42)

This commit is contained in:
0x29a
2024-02-06 11:38:07 +08:00
committed by GitHub
parent 0b2243acf0
commit f1fa216d0e
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ impl<I: StorageIterator> Ord for HeapWrapper<I> {
} }
/// Merge multiple iterators of the same type. If the same key occurs multiple times in some /// 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<I: StorageIterator> { pub struct MergeIterator<I: StorageIterator> {
iters: BinaryHeap<HeapWrapper<I>>, iters: BinaryHeap<HeapWrapper<I>>,
current: Option<HeapWrapper<I>>, current: Option<HeapWrapper<I>>,

View File

@@ -39,7 +39,7 @@ impl<I: StorageIterator> Ord for HeapWrapper<I> {
} }
/// Merge multiple iterators of the same type. If the same key occurs multiple times in some /// 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<I: StorageIterator> { pub struct MergeIterator<I: StorageIterator> {
iters: BinaryHeap<HeapWrapper<I>>, iters: BinaryHeap<HeapWrapper<I>>,
current: Option<HeapWrapper<I>>, current: Option<HeapWrapper<I>>,

View File

@@ -37,7 +37,7 @@ impl<I: StorageIterator> Ord for HeapWrapper<I> {
} }
/// Merge multiple iterators of the same type. If the same key occurs multiple times in some /// 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<I: StorageIterator> { pub struct MergeIterator<I: StorageIterator> {
iters: BinaryHeap<HeapWrapper<I>>, iters: BinaryHeap<HeapWrapper<I>>,
current: Option<HeapWrapper<I>>, current: Option<HeapWrapper<I>>,