Skip to content

Commit 87f4c82

Browse files
authored
docs: ensure consistency between examples
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 7c1d6cd commit 87f4c82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/to-rot90

lib/node_modules/@stdlib/ndarray/base/to-rot90/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ y = toRot90( x, [ 0, 1 ], -1 );
119119
arr = ndarray2array( y );
120120
// returns [ [ 4, 1 ], [ 5, 2 ], [ 6, 3 ] ]
121121

122-
// Supports negative dimension indices:
123-
y = toRot90( x, [ -2, -1 ], 1 );
122+
// Reverse the rotation direction by reversing the dimension order:
123+
y = toRot90( x, [ 1, 0 ], 1 );
124124
arr = ndarray2array( y );
125-
// returns [ [ 3, 6 ], [ 2, 5 ], [ 1, 4 ] ]
125+
// returns [ [ 4, 1 ], [ 5, 2 ], [ 6, 3 ] ]
126126
```
127127

128128
</section>

0 commit comments

Comments
 (0)