chore: typos & refine comments (#65)

* typo in  week2-01-compaction.md

* chroe: typos & add comments

* chore: more typos

* Update week2-01-compaction.md

---------

Co-authored-by: Alex Chi Z <iskyzh@gmail.com>
This commit is contained in:
0x29a
2024-03-25 03:23:07 +08:00
committed by GitHub
parent afad25b6fd
commit 621d7a8cf3
5 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ pub struct BlockIterator {
block: Arc<Block>,
/// The current key, empty represents the iterator is invalid
key: KeyVec,
/// the value range from the block
/// the current value range in the block.data, corresponds to the current key
value_range: (usize, usize),
/// Current index of the key-value pair, should be in range of [0, num_of_elements)
idx: usize,