Skip to content

Commit 14b16b9

Browse files
author
Simon Prickett
authored
Fixed zScanIterator example (#1733)
The example for `zScanIterator` had the wrong values in the `for` loop.
1 parent 957f5a1 commit 14b16b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ This works with `HSCAN`, `SSCAN`, and `ZSCAN` too:
180180
```typescript
181181
for await (const { field, value } of client.hScanIterator('hash')) {}
182182
for await (const member of client.sScanIterator('set')) {}
183-
for await (const { score, member } of client.zScanIterator('sorted-set')) {}
183+
for await (const { score, value } of client.zScanIterator('sorted-set')) {}
184184
```
185185

186186
You can override the default options by providing a configuration object:

0 commit comments

Comments
 (0)