Skip to content

Commit 1f1c2df

Browse files
committed
docs: fix example
1 parent 15c9b0e commit 1f1c2df

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/array/base/with/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/array/base/with/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ interface ArrayWith {
8181
* @example
8282
* var x = [ 1, 2, 3, 4, 5, 6 ];
8383
*
84-
* var out = arrayWith( x, 2, 8 );
84+
* var out = arrayWith( x, 1, 8 );
8585
* // returns [ 1, 8, 3, 4, 5, 6 ]
8686
*/
8787
<T = unknown>( x: Collection<T>, index: number, value: T ): Array<T>;
@@ -228,7 +228,7 @@ interface ArrayWith {
228228
* @example
229229
* var x = [ 1, 2, 3, 4, 5, 6 ];
230230
*
231-
* var out = arrayWith( x, 2, 8 );
231+
* var out = arrayWith( x, 1, 8 );
232232
* // returns [ 1, 8, 3, 4, 5, 6 ]
233233
*/
234234
declare var arrayWith: ArrayWith;

0 commit comments

Comments
 (0)