Skip to content

Commit 923db7f

Browse files
docs: improve doctests for complex number instances in array/base/accessors
PR-URL: #11970 Reviewed-by: Athan Reines <kgryte@gmail.com> Ref: stdlib-js/metr-issue-tracker#516 Ref: #4833
1 parent 8decd39 commit 923db7f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/node_modules/@stdlib/array/base/accessors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ console.log( 'Accessor protocol: %s', bool );
115115

116116
// Retrieve an array element:
117117
var v = obj.accessors[ 0 ]( x, 1 );
118-
// returns <Complex64>
118+
// returns <Complex64>[ 2.0, 3.0 ]
119119

120120
console.log( 'x[1] = %s', v.toString() );
121121
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ declare function accessors( x: Uint8ClampedArray ): Uint8cAccessorObject;
761761
* // returns [ <Function>, <Function> ]
762762
*
763763
* var v = fcns[ 0 ]( x, 1 );
764-
* // returns <Complex128>
764+
* // returns <Complex128>[ 3.0, 4.0 ]
765765
*/
766766
declare function accessors( x: Complex128Array ): Complex128AccessorObject;
767767

@@ -789,7 +789,7 @@ declare function accessors( x: Complex128Array ): Complex128AccessorObject;
789789
* // returns [ <Function>, <Function> ]
790790
*
791791
* var v = fcns[ 0 ]( x, 1 );
792-
* // returns <Complex64>
792+
* // returns <Complex64>[ 3.0, 4.0 ]
793793
*/
794794
declare function accessors( x: Complex64Array ): Complex64AccessorObject;
795795

0 commit comments

Comments
 (0)