From ae87a36d6359030c4e36d77c5d588a23a46ff281 Mon Sep 17 00:00:00 2001 From: Simon Prickett Date: Thu, 25 Nov 2021 17:11:48 +0000 Subject: [PATCH] Fixed `zScanIterator` example The example for `zScanIterator` had the wrong values in the `for` loop. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b400b6db375..cc2edec9e77 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ This works with `HSCAN`, `SSCAN`, and `ZSCAN` too: ```typescript 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')) {} +for await (const { score, value } of client.zScanIterator('sorted-set')) {} ``` You can override the default options by providing a configuration object: