Skip to content

Commit 5bda2fd

Browse files
authored
docs:Fix typo
The type of `value` is number, not string.
1 parent 488983f commit 5bda2fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/iterator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function makeIterator(array) {
6969
```javascript
7070
var it = idMaker();
7171

72-
it.next().value // '0'
73-
it.next().value // '1'
74-
it.next().value // '2'
72+
it.next().value // 0
73+
it.next().value // 1
74+
it.next().value // 2
7575
// ...
7676

7777
function idMaker() {

0 commit comments

Comments
 (0)