Skip to content

Commit d06ecc7

Browse files
authored
Fixes a bug in the Scan Iterator section. (#1694)
1 parent dec5048 commit d06ecc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ for await (const key of client.scanIterator()) {
181181
This works with `HSCAN`, `SSCAN`, and `ZSCAN` too:
182182

183183
```typescript
184-
for await (const member of client.hScanIterator('hash')) {}
185-
for await (const { field, value } of client.sScanIterator('set')) {}
186-
for await (const { member, score } of client.zScanIterator('sorted-set')) {}
184+
for await (const { field, value } of client.hScanIterator('hash')) {}
185+
for await (const member of client.sScanIterator('set')) {}
186+
for await (const { score, member } of client.zScanIterator('sorted-set')) {}
187187
```
188188

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

0 commit comments

Comments
 (0)