Skip to content

Commit 084b411

Browse files
committed
Auto-generated commit
1 parent 535b7b9 commit 084b411

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ A total of 49 issues were closed in this release:
932932

933933
<details>
934934

935+
- [`c77fbd9`](https://github.com/stdlib-js/stdlib/commit/c77fbd9a0ea702e373b40173007fcb4c0639c24e) - **refactor:** align `ndarray/base/diagonal` error message and remove `namespace` self-refs [(#12096)](https://github.com/stdlib-js/stdlib/pull/12096) _(by Philipp Burckhardt, Athan Reines)_
935936
- [`c534f97`](https://github.com/stdlib-js/stdlib/commit/c534f971488b2a5ebacca4dccf73a9d9b4e09bc7) - **docs:** update namespace table of contents [(#12092)](https://github.com/stdlib-js/stdlib/pull/12092) _(by stdlib-bot)_
936937
- [`25ae5aa`](https://github.com/stdlib-js/stdlib/commit/25ae5aa59b431b6b562e4fe36b69b3186111af12) - **refactor:** update error message _(by Athan Reines)_
937938
- [`ca918f8`](https://github.com/stdlib-js/stdlib/commit/ca918f82273615d9785f80d703bcf24391bb516b) - **docs:** update ToC _(by Athan Reines)_

base/diagonal/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var format = require( '@stdlib/string/format' );
5050
* @param {integer} k - diagonal offset
5151
* @param {boolean} writable - boolean indicating whether the returned ndarray should be writable
5252
* @throws {RangeError} must provide exactly two dimension indices
53-
* @throws {RangeError} input ndarray must have at least two dimensions
53+
* @throws {RangeError} must provide an ndarray having two or more dimensions
5454
* @throws {RangeError} must provide valid dimension indices
5555
* @throws {Error} must provide unique dimension indices
5656
* @returns {ndarray} ndarray view
@@ -87,7 +87,7 @@ function diagonal( x, dims, k, writable ) {
8787
sh = getShape( x );
8888
ndims = sh.length;
8989
if ( ndims < 2 ) {
90-
throw new RangeError( format( 'invalid argument. First argument must be an ndarray having at least two dimensions. Number of dimensions: %d.', ndims ) );
90+
throw new RangeError( format( 'invalid argument. First argument must be an ndarray having two or more dimensions. Number of dimensions: %d.', ndims ) );
9191
}
9292
st = getStrides( x );
9393

0 commit comments

Comments
 (0)