Skip to content

Commit b760e76

Browse files
committed
check
1 parent 8e21970 commit b760e76

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/incr/nanprod/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ var incrprod = require( '@stdlib/stats/incr/prod' );
4848
* // returns 2.0
4949
*
5050
* prod = accumulator( NaN );
51-
* // returns 2.0
51+
* // returns NaN
5252
*
5353
* prod = accumulator( -5.0 );
54-
* // returns -10.0
54+
* // returns NaN
5555
*
5656
* prod = accumulator();
57-
* // returns -10.0
57+
* // returns NaN
5858
*/
5959
function incrnanprod() {
6060
var prod = incrprod();

lib/node_modules/@stdlib/stats/incr/nanprod/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ tape( 'the accumulator function incrementally computes a product', function test
7979
prod *= d;
8080
}
8181
expected[ i ] = prod;
82-
actual[ i ] = acc( d );
82+
actual[ i ] = acc( d );
8383
}
8484
t.deepEqual( actual, expected, 'returns expected value' );
8585
t.end();
@@ -127,7 +127,7 @@ tape( 'the accumulator function can return a result which overflows', function t
127127
var acc = incrnanprod();
128128

129129
acc( 5.0e300 );
130-
acc( NaN );
130+
acc( NaN );
131131
acc( 1.0e300 );
132132

133133
t.strictEqual( acc(), PINF, 'returns infinity' );

0 commit comments

Comments
 (0)