Skip to content

Commit f243285

Browse files
authored
docs: update example
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 035498d commit f243285

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/dnanstdevpn/examples

lib/node_modules/@stdlib/stats/base/ndarray/dnanstdevpn/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var opts = {
3737
'dtype': 'float64'
3838
};
3939

40-
var xbuf = filledarrayBy( 10, 'float64', rand );
40+
var xbuf = filledarrayBy( 10, opts.dtype, rand );
4141
var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
4242
console.log( ndarray2array( x ) );
4343

0 commit comments

Comments
 (0)