Skip to content

Commit a2fcfdb

Browse files
authored
docs: improve doctests for ndarray instances in ndarray/fill
PR-URL: #12248 Reviewed-by: Athan Reines <[email protected]> Ref: #9329
1 parent 91a6a85 commit a2fcfdb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/fill

‎lib/node_modules/@stdlib/ndarray/fill/README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,16 @@ Fills an input [`ndarray`][@stdlib/ndarray/ctor] with a specified value.
4242

4343
```javascript
4444
var zeros = require( '@stdlib/ndarray/zeros' );
45-
var ndarray2array = require( '@stdlib/ndarray/to-array' );
4645

4746
var x = zeros( [ 3, 1, 2 ], {
4847
'dtype': 'float64'
4948
});
5049

5150
var y = fill( x, 10.0 );
52-
// returns <ndarray>
51+
// returns <ndarray>[ [ [ 10.0, 10.0 ] ], [ [ 10.0, 10.0 ] ], [ [ 10.0, 10.0 ] ] ]
5352

5453
var bool = ( y === x );
5554
// returns true
56-
57-
var arr = ndarray2array( x );
58-
// returns [ [ [ 10.0, 10.0 ] ], [ [ 10.0, 10.0 ] ], [ [ 10.0, 10.0 ] ] ]
5955
```
6056

6157
The function accepts the following arguments:

0 commit comments

Comments
 (0)