From 73256bdf6c885c0c2287aada2713210e385343cd Mon Sep 17 00:00:00 2001 From: Pragyan Shankar Date: Thu, 9 Jul 2026 00:19:08 +0530 Subject: [PATCH 1/2] fix: correct push_typed_array example to pass items as array --- lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js b/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js index 3a94c9647c11..ae9232e6eecd 100644 --- a/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js +++ b/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js @@ -45,7 +45,7 @@ var ceil2 = require( '@stdlib/math/base/special/ceil2' ); // TODO: nextpow2 * var arr = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); * // returns [ 1.0, 2.0, 3.0, 4.0, 5.0 ] * -* arr = push( arr, 6.0, 7.0 ); +* arr = push( arr, [6.0, 7.0 ] ); * // returns [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ] */ function push( arr, items ) { From 60740464e81b88c685330fbb0ff8ce28cac9a713 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 8 Jul 2026 16:01:51 -0700 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js b/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js index ae9232e6eecd..1cba859a4c1e 100644 --- a/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js +++ b/lib/node_modules/@stdlib/utils/push/lib/push_typed_array.js @@ -45,7 +45,7 @@ var ceil2 = require( '@stdlib/math/base/special/ceil2' ); // TODO: nextpow2 * var arr = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); * // returns [ 1.0, 2.0, 3.0, 4.0, 5.0 ] * -* arr = push( arr, [6.0, 7.0 ] ); +* arr = push( arr, [ 6.0, 7.0 ] ); * // returns [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ] */ function push( arr, items ) {