From ab0ec1c4f4796bab00841a8f7ab84b6d83592838 Mon Sep 17 00:00:00 2001 From: Blake Jakopovic Date: Mon, 19 Sep 2022 18:54:38 +0300 Subject: [PATCH 1/2] Update p2p-indexing-with-hyperbee.md Fixed typo in code example --- guides/walkthroughs/p2p-indexing-with-hyperbee.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/walkthroughs/p2p-indexing-with-hyperbee.md b/guides/walkthroughs/p2p-indexing-with-hyperbee.md index 817e712..09065ec 100644 --- a/guides/walkthroughs/p2p-indexing-with-hyperbee.md +++ b/guides/walkthroughs/p2p-indexing-with-hyperbee.md @@ -171,7 +171,7 @@ Now we can see how different `createReadStream` options affect the pairs that ar | Last 10 pairs, reversed | `{limit: 10, reverse: true}` | | Between 'a' and 'd', non-inclusive | `{gt: 'a', lt: 'd'}` | | Between 'a' and 'd', inclusive | `{gte: 'a', lte: 'd'}` | -| Between 'e' and 'f', inclusive, reversed | `{gte: 'e', 'lte: 'f', reversed: true}` | +| Between 'e' and 'f', inclusive, reversed | `{gte: 'e', 'lte: 'f', reverse: true}` | ### Sparse Downloading @@ -313,4 +313,4 @@ node 5-leveldown.js top: 5px; margin-right: 5px; } - \ No newline at end of file + From 2e2f1da414809aa71a52c3911acf0f7f06796809 Mon Sep 17 00:00:00 2001 From: Blake Jakopovic Date: Mon, 19 Sep 2022 18:58:02 +0300 Subject: [PATCH 2/2] Update p2p-indexing-with-hyperbee.md Fixed extra ) typo --- guides/walkthroughs/p2p-indexing-with-hyperbee.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/walkthroughs/p2p-indexing-with-hyperbee.md b/guides/walkthroughs/p2p-indexing-with-hyperbee.md index 09065ec..202f8c5 100644 --- a/guides/walkthroughs/p2p-indexing-with-hyperbee.md +++ b/guides/walkthroughs/p2p-indexing-with-hyperbee.md @@ -108,7 +108,7 @@ await b.flush() To read out a single kv-pair, you can use the `get` method: ```js -const node = await db.get('a')) // An object of the form { key, value } +const node = await db.get('a') // An object of the form { key, value } ``` `get` will either return an object of the form `{ key, value }`, or `null`.