Skip to content

Commit 5adeabf

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent c15e7b7 commit 5adeabf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/to-reversed-dimensions/examples

lib/node_modules/@stdlib/ndarray/base/to-reversed-dimensions/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ var toReversedDimensions = require( './../lib' );
2525
// Create a 3x2 matrix:
2626
var x = array( [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] );
2727

28-
// Reverse the order of the first axis:
28+
// Reverse the order of the first dimension:
2929
var y = toReversedDimensions( x, [ 0 ] );
3030
console.log( ndarray2array( y ) );
3131
// => [ [ 5, 6 ], [ 3, 4 ], [ 1, 2 ] ]
3232

33-
// Reverse the order of the second axis:
33+
// Reverse the order of the second dimension:
3434
y = toReversedDimensions( x, [ 1 ] );
3535
console.log( ndarray2array( y ) );
3636
// => [ [ 2, 1 ], [ 4, 3 ], [ 6, 5 ] ]
3737

38-
// Reverse the order of all axes:
38+
// Reverse the order of all dimensions:
3939
y = toReversedDimensions( x, [ 0, 1 ] );
4040
console.log( ndarray2array( y ) );
4141
// => [ [ 6, 5 ], [ 4, 3 ], [ 2, 1 ] ]

0 commit comments

Comments
 (0)