Skip to content

Commit 044d67b

Browse files
authored
docs: fix examples
PR-URL: #8162 Reviewed-by: Athan Reines <[email protected]>
1 parent 25cbdd6 commit 044d67b

File tree

1 file changed

+7
-7
lines changed
  • lib/node_modules/@stdlib/iter/docs/types

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,9 @@ interface Namespace {
645645
* return v > 2;
646646
* }
647647
*
648-
* function assert( v, i ) {
649-
* if ( i > 1 ) {
650-
* throw new Error( 'unexpected error' );
648+
* function assert( v ) {
649+
* if ( v !== v ) {
650+
* throw new Error( 'should not be NaN' );
651651
* }
652652
* }
653653
*
@@ -693,9 +693,9 @@ interface Namespace {
693693
* return v < 3;
694694
* }
695695
*
696-
* function assert( v, i ) {
697-
* if ( i > 1 ) {
698-
* throw new Error( 'unexpected error' );
696+
* function assert( v ) {
697+
* if ( v !== v ) {
698+
* throw new Error( 'should not be NaN' );
699699
* }
700700
* }
701701
*
@@ -1784,7 +1784,7 @@ interface Namespace {
17841784
* // returns 1
17851785
*
17861786
* r = iter.next().value;
1787-
* // returns 2
1787+
* // returns 3
17881788
*
17891789
* // ...
17901790
*/

0 commit comments

Comments
 (0)