Skip to content

Commit 22cd9dd

Browse files
committed
Auto-generated commit
1 parent c40e93a commit 22cd9dd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

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

795795
<details>
796796

797+
- [`0f753ef`](https://github.com/stdlib-js/stdlib/commit/0f753ef8b2aeb203c314accd37af63c551dfdfad) - **refactor:** use string interpolation _(by Athan Reines)_
797798
- [`2de635b`](https://github.com/stdlib-js/stdlib/commit/2de635b53a4366fbcc55f5c648871fd3a59f0b99) - **feat:** add `ndarray2localeString` to namespace _(by Athan Reines)_
798799
- [`ebd5886`](https://github.com/stdlib-js/stdlib/commit/ebd5886f97aef9dad8daf7df0d850882a767ca6b) - **fix:** preserve formatting of original string serialization and rename internal files _(by Athan Reines)_
799800
- [`42656f4`](https://github.com/stdlib-js/stdlib/commit/42656f425904ee6bb2608459bc6be406cd8e827f) - **feat:** add `ndarray/to-locale-string` [(#10898)](https://github.com/stdlib-js/stdlib/pull/10898) _(by Muhammad Haris, Athan Reines)_

base/assign/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var ndarray2object = require( './../../../base/ndarraylike2object' );
3333
var reinterpretComplex = require( '@stdlib/strided/base/reinterpret-complex' );
3434
var reinterpretBoolean = require( '@stdlib/strided/base/reinterpret-boolean' );
3535
var gscal = require( '@stdlib/blas/base/gscal' );
36+
var format = require( '@stdlib/string/format' );
3637
var blockedaccessorassign2d = require( './2d_blocked_accessors.js' );
3738
var blockedaccessorassign3d = require( './3d_blocked_accessors.js' );
3839
var blockedaccessorassign4d = require( './4d_blocked_accessors.js' );
@@ -294,7 +295,7 @@ function assign( arrays ) {
294295
shy = y.shape;
295296
ndims = shx.length;
296297
if ( ndims !== shy.length ) {
297-
throw new Error( 'invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == '+ndims+'. ndims(y) == '+shy.length+'.' );
298+
throw new Error( format( 'invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == %d. ndims(y) == %d.', ndims, shy.length ) );
298299
}
299300
// Determine whether we can avoid iteration altogether...
300301
if ( ndims === 0 ) {

0 commit comments

Comments
 (0)