From a23f5776d5ccd08cb82aa829182da0b6cccce3bd Mon Sep 17 00:00:00 2001 From: Suze Shardlow Date: Fri, 22 Oct 2021 16:52:17 +0100 Subject: [PATCH] Fixes a bug in the Scan Iterator section. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 63fe9d2a522..3b73d543c34 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: