Skip to content

Commit dcc91ee

Browse files
committed
Auto-generated commit
1 parent d09e3af commit dcc91ee

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

CHANGELOG.md

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

660660
<details>
661661

662+
- [`a799baf`](https://github.com/stdlib-js/stdlib/commit/a799bafe59b868a07c99266ca494074a8037ce67) - **docs:** update examples _(by Athan Reines)_
662663
- [`b760fb5`](https://github.com/stdlib-js/stdlib/commit/b760fb5724fb36fb9ae5b18aaf642b3f25037cec) - **refactor:** rename `sentinelValue` option in `ndarray/find` _(by Muhammad Haris)_
663664
- [`178c4a3`](https://github.com/stdlib-js/stdlib/commit/178c4a33f559e1bdf0e6d3f2c4eb95b59ecd7210) - **docs:** update description _(by Athan Reines)_
664665
- [`59376ad`](https://github.com/stdlib-js/stdlib/commit/59376adf8a58a9cbf9a54dac8ee242e004b86631) - **refactor:** update error messages _(by Athan Reines)_

push/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ The function accepts the following arguments:
105105
## Examples
106106

107107
```javascript
108-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
109-
var array = require( '@stdlib/ndarray/array' );
108+
var discreteUniform = require( '@stdlib/random/discrete-uniform' );
110109
var ndarray2array = require( '@stdlib/ndarray/to-array' );
111110
var push = require( '@stdlib/ndarray/push' );
112111

113112
var opts = {
114113
'dtype': 'generic'
115114
};
116-
var x = array( discreteUniform( 6, 0, 10, opts ), opts );
115+
var x = discreteUniform( [ 6 ], 0, 10, opts );
117116
console.log( ndarray2array( x ) );
118117

119118
var out = push( x, 12, 14 );

push/examples/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818

1919
'use strict';
2020

21-
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
22-
var array = require( './../../array' );
21+
var discreteUniform = require( '@stdlib/random/discrete-uniform' );
2322
var ndarray2array = require( './../../to-array' );
2423
var push = require( './../lib' );
2524

2625
var opts = {
2726
'dtype': 'generic'
2827
};
29-
var x = array( discreteUniform( 6, 0, 10, opts ), opts );
28+
var x = discreteUniform( [ 6 ], 0, 10, opts );
3029
console.log( ndarray2array( x ) );
3130

3231
var out = push( x, 12, 14 );

0 commit comments

Comments
 (0)