From b2d37b164581afc6eea05b04402159d0aca78d5f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 8 Jul 2026 14:19:30 +0000 Subject: [PATCH] docs: fix `cosqi`/`sinqi` doctest expected output The job `Lint Changed Files` failed on develop with the `stdlib/tsdoc-declarations-doctest` ESLint rule reporting a mismatch in `docs/types/index.d.ts`: Expected entries [0,~0.707,~0.707,0,0,0,0,0], but observed [0.7071067811865476,0.7071067811865475,0,0,0,0,0,0] Root cause: the `cosqi` and `sinqi` TSDoc examples documented the twiddle-factor slice as starting with a leading `0` followed by the two `~0.707` entries, but running the actual code places the two `~0.707` entries at the start of the slice with no leading zero. This commit corrects both examples to `[ ~0.707, ~0.707, 0, 0, 0, 0, 0, 0 ]`, matching the real output (verified by directly executing `cosqi`/`sinqi` against a workspace array and inspecting the resulting twiddle-factor slice). Ref: https://github.com/stdlib-js/stdlib/actions/runs/28921300699 --- .../@stdlib/fft/base/fftpack/docs/types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts b/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts index f1f67ff85559..19560e5c011c 100644 --- a/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/fft/base/fftpack/docs/types/index.d.ts @@ -94,7 +94,7 @@ interface Namespace { * // returns [ ~0.98, ~0.92, ~0.83, ~0.7, ~0.56, ~0.38, ~0.2, ~0.0 ] * * var twiddleFactors = workspace.slice( 2*N, 3*N ); - * // returns [ 0, ~0.707, ~0.707, 0, 0, 0, 0, 0 ] + * // returns [ ~0.707, ~0.707, 0, 0, 0, 0, 0, 0 ] * * var factors = workspace.slice( 3*N, ( 3*N ) + 4 ); * // returns [ 8, 2, 2, 4 ] @@ -186,7 +186,7 @@ interface Namespace { * // returns [ ~0.98, ~0.92, ~0.83, ~0.7, ~0.56, ~0.38, ~0.2, ~0.0 ] * * var twiddleFactors = workspace.slice( 2*N, 3*N ); - * // returns [ 0, ~0.707, ~0.707, 0, 0, 0, 0, 0 ] + * // returns [ ~0.707, ~0.707, 0, 0, 0, 0, 0, 0 ] * * var factors = workspace.slice( 3*N, ( 3*N ) + 4 ); * // returns [ 8, 2, 2, 4 ]