From 6f3e683d6409d7b05965580c56f79e07f659d08b Mon Sep 17 00:00:00 2001 From: Gunj Joshi Date: Mon, 29 Jul 2024 10:05:45 +0530 Subject: [PATCH] docs: fix return type PR-URL: https://github.com/stdlib-js/stdlib/pull/2700 Ref: https://github.com/stdlib-js/stdlib/commit/f2f6164bcb23e3f0babda8fc651d2b3bc91be599#r144735363 Ref: https://github.com/stdlib-js/stdlib/commit/f2f6164bcb23e3f0babda8fc651d2b3bc91be599#r144735366 Ref: https://github.com/stdlib-js/stdlib/commit/f2f6164bcb23e3f0babda8fc651d2b3bc91be599#r144735371 Reviewed-by: Athan Reines --- .../math/base/special/fresnel/benchmark/c/native/benchmark.c | 4 ++-- .../@stdlib/math/base/special/fresnel/lib/native.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c index 2da231964e9..43d699388de 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c @@ -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; diff --git a/lib/node_modules/@stdlib/math/base/special/fresnel/lib/native.js b/lib/node_modules/@stdlib/math/base/special/fresnel/lib/native.js index f65d25565ad..864408e813f 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnel/lib/native.js +++ b/lib/node_modules/@stdlib/math/base/special/fresnel/lib/native.js @@ -31,7 +31,7 @@ var addon = require( './../src/addon.node' ); * * @private * @param {number} x - input value -* @returns {Array} S(x) and C(x) +* @returns {Float64Array} S(x) and C(x) * * @example * var v = fresnel( 0.0 );