Skip to content

Commit

Permalink
docs: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Feb 21, 2024
1 parent 7ab004b commit e572eb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ import { Collection, TypedArray, ComplexTypedArray } from '@stdlib/types/array';
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
*
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
*
* var out = slice( x, 0, 3 );
* // returns <Complex64Array>[ 1.0, 2.0, 3.0 ]
* // returns <Complex128Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]
*/
declare function slice<T extends TypedArray | ComplexTypedArray>( x: T, start: number, end: number ): T;

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/slice/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ import { Collection, TypedArray, ComplexTypedArray } from '@stdlib/types/array';
* @example
* var Complex64Array = require( '@stdlib/array/complex64' );
*
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
*
* var out = slice( x );
* // returns <Complex64Array>[ 1.0, 2.0, 3.0 ]
* // returns <Complex64Array>
*/
declare function slice<T extends TypedArray | ComplexTypedArray>( x: T, start?: number, end?: number ): T;

Expand Down

0 comments on commit e572eb0

Please sign in to comment.