Skip to content

Commit

Permalink
Update code comment for next
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Apr 22, 2018
1 parent 04d4b8d commit 42c8085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function iter <T> (iterable: Iterable<T>): Iterator<T> {
}

/**
* Get next iterator value, throw on `done`.
* Get next iterator value, throw when `done`.
*/
export function next <T> (iterator: Iterator<T>): T {
const item = iterator.next()
Expand Down

0 comments on commit 42c8085

Please sign in to comment.