diff --git a/concepts/Iterators.md b/concepts/Iterators.md index fa5f2a5..65e77d3 100644 --- a/concepts/Iterators.md +++ b/concepts/Iterators.md @@ -47,14 +47,14 @@ function nextIterator(arr) { let i = 0; const inner = { - const next = () => { + next: () => { const element = arr[i]; i++; return element; } } - + return inner; } @@ -223,4 +223,4 @@ async function f(noun) { } f("dog"); -``` \ No newline at end of file +```