Skip to content

Commit 67cdf3c

Browse files
authored
chore: propagate recent doctest and lint fixes to sibling packages
PR-URL: #11585 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 50e53a1 commit 67cdf3c

15 files changed

Lines changed: 27 additions & 28 deletions

File tree

lib/node_modules/@stdlib/blas/docs/types/index.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ interface Namespace {
188188
* var y = array( new Float32Array( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] ) );
189189
*
190190
* var z = ns.sdot( x, y );
191-
* // returns <ndarray>
192-
*
193-
* var v = z.get();
194-
* // returns -5.0
191+
* // returns <ndarray>[ -5.0 ]
195192
*/
196193
sdot: typeof sdot;
197194

lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusum/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
3131
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
3232
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
33-
> {{alias}}( [ x, y, s ] );
34-
> {{alias:@stdlib/ndarray/to-array}}( y )
35-
[ 1.0, -1.0, 1.0 ]
33+
> {{alias}}( [ x, y, s ] )
34+
<ndarray>[ 1.0, -1.0, 1.0 ]
3635

3736
See Also
3837
--------

lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusumkbn/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
3131
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
3232
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
33-
> {{alias}}( [ x, y, s ] );
34-
> {{alias:@stdlib/ndarray/to-array}}( y )
35-
[ 1.0, -1.0, 1.0 ]
33+
> {{alias}}( [ x, y, s ] )
34+
<ndarray>[ 1.0, -1.0, 1.0 ]
3635

3736
See Also
3837
--------

lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusumkbn2/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
3131
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
3232
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
33-
> {{alias}}( [ x, y, s ] );
34-
> {{alias:@stdlib/ndarray/to-array}}( y )
35-
[ 1.0, -1.0, 1.0 ]
33+
> {{alias}}( [ x, y, s ] )
34+
<ndarray>[ 1.0, -1.0, 1.0 ]
3635

3736
See Also
3837
--------

lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusumors/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
3131
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
3232
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
33-
> {{alias}}( [ x, y, s ] );
34-
> {{alias:@stdlib/ndarray/to-array}}( y )
35-
[ 1.0, -1.0, 1.0 ]
33+
> {{alias}}( [ x, y, s ] )
34+
<ndarray>[ 1.0, -1.0, 1.0 ]
3635

3736
See Also
3837
--------

lib/node_modules/@stdlib/blas/ext/base/ndarray/dcusumpw/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
> var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord );
3131
> var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord );
3232
> var s = {{alias:@stdlib/ndarray/from-scalar}}( 0.0, { 'dtype': dt } );
33-
> {{alias}}( [ x, y, s ] );
34-
> {{alias:@stdlib/ndarray/to-array}}( y )
35-
[ 1.0, -1.0, 1.0 ]
33+
> {{alias}}( [ x, y, s ] )
34+
<ndarray>[ 1.0, -1.0, 1.0 ]
3635

3736
See Also
3837
--------

lib/node_modules/@stdlib/datasets/us-states-capitals-names/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ var t = table();
104104

105105
```javascript
106106
var capitalize = require( '@stdlib/string/capitalize' );
107+
var format = require( '@stdlib/string/format' );
107108
var table = require( '@stdlib/datasets/us-states-capitals-names' );
108109

109110
var tbl = table();
@@ -123,7 +124,7 @@ function getState( capital ) {
123124

124125
// Ensure a valid capital name was provided...
125126
if ( state === void 0 ) {
126-
throw new Error( 'unrecognized capital. Value: `' + capital + '`.' );
127+
throw new Error( format( 'unrecognized capital. Value: `%s`.', capital ) );
127128
}
128129
return state;
129130
}

lib/node_modules/@stdlib/datasets/us-states-capitals-names/examples/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'use strict';
2020

2121
var capitalize = require( '@stdlib/string/capitalize' );
22+
var format = require( '@stdlib/string/format' );
2223
var table = require( './../lib' );
2324

2425
var tbl = table();
@@ -38,7 +39,7 @@ function getState( capital ) {
3839

3940
// Ensure a valid capital name was provided...
4041
if ( state === void 0 ) {
41-
throw new Error( 'unrecognized capital. Value: `' + capital + '`.' );
42+
throw new Error( format( 'unrecognized capital. Value: `%s`.', capital ) );
4243
}
4344
return state;
4445
}

lib/node_modules/@stdlib/stats/base/ndarray/cumin/lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ var strided = require( '@stdlib/stats/base/cumin' ).ndarray;
3636
* @returns {ndarrayLike} output ndarray
3737
*
3838
* @example
39-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
4039
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
4140
*
4241
* var xbuf = [ 1.0, 3.0, 4.0, 2.0 ];

lib/node_modules/@stdlib/utils/async/for-each/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ The function accepts the same `options` as `forEachAsync()`.
280280
```javascript
281281
var resolve = require( 'path' ).resolve;
282282
var readFile = require( '@stdlib/fs/read-file' );
283+
var format = require( '@stdlib/string/format' );
283284
var forEachAsync = require( '@stdlib/utils/async/for-each' );
284285

285286
var files = [
@@ -302,7 +303,7 @@ function read( file, next ) {
302303

303304
function onFile( error ) {
304305
if ( error ) {
305-
error = new Error( 'unable to read file: '+file );
306+
error = new Error( format( 'unable to read file: %s', file ) );
306307
return next( error );
307308
}
308309
console.log( 'Successfully read file: %s', file );

0 commit comments

Comments
 (0)