fix: typo in week 1 day 3 (#50)

This commit is contained in:
PinelliaC
2024-02-25 05:13:34 +08:00
committed by GitHub
parent a5c61760b0
commit 30cdeb105d

View File

@@ -77,7 +77,7 @@ In this task, you will need to modify:
src/block/iterator.rs
```
Now that we have an encoded block, we will need to implement the `StorageIterator` interface, so that the user can lookup/scan keys in the block.
Now that we have an encoded block, we will need to implement the `BlockIterator` interface, so that the user can lookup/scan keys in the block.
`BlockIterator` can be created with an `Arc<Block>`. If `create_and_seek_to_first` is called, it will be positioned at the first key in the block. If `create_and_seek_to_key` is called, the iterator will be positioned at the first key that is `>=` the provided key. For example, if `1, 3, 5` is in a block.