Skip to content

Commit daa94ac

Browse files
committed
Update note
1 parent e1b8450 commit daa94ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/iter/head/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
If a provided iterator only generates `m` values and `m` is less than `n`,
77
the returned iterator only returns `m` values.
88

9-
If an environment supports Symbol.iterator, the returned iterator is
10-
iterable.
9+
If an environment supports Symbol.iterator and a provided iterator is
10+
iterable, the returned iterator is iterable.
1111

1212
Parameters
1313
----------

lib/node_modules/@stdlib/iter/head/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Iterator = Iter | IterableIterator;
3131
* ## Notes
3232
*
3333
* - If a provided iterator only generates `m` values and `m` is less than `n`, the returned iterator only returns `m` values.
34-
* - If an environment supports `Symbol.iterator`, the returned iterator is iterable.
34+
* - If an environment supports `Symbol.iterator` **and** a provided iterator is iterable, the returned iterator is iterable.
3535
*
3636
* @param iterator - input iterator
3737
* @param n - number of values

0 commit comments

Comments
 (0)