Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: fix example
Signed-off-by: Athan <kgryte@gmail.com>
  • Loading branch information
kgryte authored Dec 8, 2025
commit 8ddafa18f268d9d4e449c5ad1dd789ed04ef7f51
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

'use strict';

/**

Check failure on line 21 in lib/node_modules/@stdlib/ndarray/base/to-reversed-dimension/lib/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `[ [ 5.0, 6.0 ], [ 3.0, 4.0 ], [ 1.0, 2.0 ] ]`, but expected `[ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ]` instead
* Return a new ndarray where the order of elements of an input ndarray along a specified dimension is reversed.
*
* @module @stdlib/ndarray/base/to-reversed-dimension
Expand All @@ -42,7 +42,7 @@
* var arr = ndarray2array( x );
* // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ]
*
* var y = toReversed( x );
* var y = toReversedDimension( x );
Comment thread
kgryte marked this conversation as resolved.
Outdated
* // returns <ndarray>
*
* sh = y.shape;
Expand Down
Loading