Skip to content

Commit e74a87a

Browse files
committed
Fix types in format string
1 parent 6b9fcc9 commit e74a87a

File tree

2 files changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/ndarray/base

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/bind2vind/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function bind2vind( shape, strides, offset, order, idx, mode ) {
8484
}
8585
}
8686
} else if ( idx < 0 || idx >= len ) {
87-
throw new RangeError( format( 'invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%u`.', len, idx ) );
87+
throw new RangeError( format( 'invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.', len, idx ) );
8888
}
8989
// The approach which follows is to resolve a buffer index to its subscripts and then plug the subscripts into the standard formula for computing the linear index in the array view (i.e., where all strides are positive and offset is 0)...
9090
ind = 0;

lib/node_modules/@stdlib/ndarray/base/vind2bind/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function vind2bind( shape, strides, offset, order, idx, mode ) {
8181
}
8282
}
8383
} else if ( idx < 0 || idx >= len ) {
84-
throw new RangeError( format( 'invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%u`.', len, idx ) );
84+
throw new RangeError( format( 'invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.', len, idx ) );
8585
}
8686
// The approach which follows is to resolve a view index to its subscripts and then plug the subscripts into the standard formula for computing the linear index in the underlying data buffer...
8787
ind = offset;

0 commit comments

Comments
 (0)