From d06ecc77435b69fa544bd918f585a202e2a0714d Mon Sep 17 00:00:00 2001 From: Suze Shardlow Date: Fri, 22 Oct 2021 19:57:02 +0100 Subject: [PATCH] Fixes a bug in the Scan Iterator section. (#1694) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 63fe9d2a52..3b73d543c3 100644 --- a/README.md +++ b/README.md @@ -181,9 +181,9 @@ for await (const key of client.scanIterator()) { This works with `HSCAN`, `SSCAN`, and `ZSCAN` too: ```typescript -for await (const member of client.hScanIterator('hash')) {} -for await (const { field, value } of client.sScanIterator('set')) {} -for await (const { member, score } of client.zScanIterator('sorted-set')) {} +for await (const { field, value } of client.hScanIterator('hash')) {} +for await (const member of client.sScanIterator('set')) {} +for await (const { score, member } of client.zScanIterator('sorted-set')) {} ``` You can override the default options by providing a configuration object: