Skip to content

Commit

Permalink
docs: fix return type
Browse files Browse the repository at this point in the history
PR-URL: stdlib-js#2700
Ref: stdlib-js@f2f6164#r144735363
Ref: stdlib-js@f2f6164#r144735366
Ref: stdlib-js@f2f6164#r144735371
Reviewed-by: Athan Reines <kgryte@gmail.com>
  • Loading branch information
gunjjoshi committed Aug 21, 2024
1 parent f9c9b9b commit 8493414
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ static double benchmark( void ) {
for ( i = 0; i < ITERATIONS; i++ ) {
x = ( 20.0 * rand_double() ) - 10.0;
stdlib_base_fresnel( x, &S, &C );
if ( C != C || S != S) {
if ( C != C || S != S ) {
printf( "unexpected results\n" );
break;
}
}
elapsed = tic() - t;
if ( C != C || S != S) {
if ( C != C || S != S ) {
printf( "unexpected results\n" );
}
return elapsed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var addon = require( './../src/addon.node' );
*
* @private
* @param {number} x - input value
* @returns {Array<number>} S(x) and C(x)
* @returns {Float64Array} S(x) and C(x)
*
* @example
* var v = fresnel( 0.0 );
Expand Down

0 comments on commit 8493414

Please sign in to comment.