From 30cdeb105d3dcf59f16898c861987fc648216691 Mon Sep 17 00:00:00 2001 From: PinelliaC Date: Sun, 25 Feb 2024 05:13:34 +0800 Subject: [PATCH] fix: typo in week 1 day 3 (#50) --- mini-lsm-book/src/week1-03-block.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-lsm-book/src/week1-03-block.md b/mini-lsm-book/src/week1-03-block.md index 087e66c..9a90f1d 100644 --- a/mini-lsm-book/src/week1-03-block.md +++ b/mini-lsm-book/src/week1-03-block.md @@ -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`. 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.