Skip to content

Commit 2c08a91

Browse files
committed
docs: improve doctests for complex number instances in array/base/at
1 parent ada72e9 commit 2c08a91

File tree

1 file changed

+4
-11
lines changed
  • lib/node_modules/@stdlib/array/base/at/docs/types

1 file changed

+4
-11
lines changed

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,18 @@ declare function at( x: Complex128Array, index: number ): Complex128 | void;
6363
*
6464
* @example
6565
* var Complex128Array = require( '@stdlib/array/complex64' );
66-
* var realf = require( '@stdlib/complex/float32/real' );
67-
* var imagf = require( '@stdlib/complex/float32/imag' );
68-
*
66+
*
6967
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
7068
*
7169
* var v = at( x, 0 );
72-
* // returns <Complex64>
70+
* // returns <Complex64>[ 1.0, 2.0 ]
7371
*
7472
* v = at( x, 1 );
75-
* // returns <Complex64>
73+
* // returns <Complex64>[ 3.0, 4.0 ]
7674
*
7775
* v = at( x, -2 );
78-
* // returns <Complex64>
79-
*
80-
* var re = realf( v );
81-
* // returns 5.0
76+
* // returns <Complex64>[ 5.0, 6.0 ]
8277
*
83-
* var im = imagf( v );
84-
* // returns 6.0
8578
*/
8679
declare function at( x: Complex64Array, index: number ): Complex64 | void;
8780

0 commit comments

Comments
 (0)