Skip to content

Commit 814183b

Browse files
committed
Fix example
1 parent 06f6314 commit 814183b

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/array/complex64/lib

1 file changed

+5
-5
lines changed

lib/node_modules/@stdlib/array/complex64/lib/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,15 +574,15 @@ defineProperty( Complex64Array.prototype, 'BYTES_PER_ELEMENT', {
574574
*
575575
* // Set the array elements:
576576
* arr.set( new Complex64( 1.0, 1.0 ), 0 );
577-
* arr.set( new Complex64( 2.0, 2.0 ), 0 );
578-
* arr.set( new Complex64( 3.0, 3.0 ), 0 );
579-
* arr.set( new Complex64( 4.0, 4.0 ), 0 );
577+
* arr.set( new Complex64( 2.0, 2.0 ), 1 );
578+
* arr.set( new Complex64( 3.0, 3.0 ), 2 );
579+
* arr.set( new Complex64( 4.0, 4.0 ), 3 );
580580
*
581581
* // Copy the first two elements to the last two elements:
582582
* arr.copyWithin( 2, 0, 2 );
583583
*
584584
* // Get the last array element:
585-
* var z = arr.get( 2 );
585+
* var z = arr.get( 3 );
586586
*
587587
* var re = real( z );
588588
* // returns 2.0
@@ -598,7 +598,7 @@ defineProperty( Complex64Array.prototype, 'copyWithin', {
598598
if ( !isComplexArray( this ) ) {
599599
throw new TypeError( 'invalid invocation. `this` is not a complex number array.' );
600600
}
601-
// FIXME: prefer a functional `copyWithin` implementation which addresses lack of universal browser support (e.g., IE11 and Safari)
601+
// FIXME: prefer a functional `copyWithin` implementation which addresses lack of universal browser support (e.g., IE11 and Safari) or ensure that typed arrays are polyfilled
602602
if ( arguments.length === 2 ) {
603603
this._buffer.copyWithin( target*2, start*2 );
604604
} else {

0 commit comments

Comments
 (0)