File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/node_modules/@stdlib/iter/docs/types Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments