Skip to content

Commit

Permalink
docs: fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjjoshi authored Jul 29, 2024
1 parent 4d208c9 commit 6f3e683
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 6f3e683

Please sign in to comment.