Skip to content

Commit 2798013

Browse files
committed
docs: update example
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 27c5236 commit 2798013

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/ndarray/base/pop/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Returns an array containing a truncated view of an input ndarray and a view of t
4646

4747
```javascript
4848
var ndarray = require( '@stdlib/ndarray/ctor' );
49+
var getShape = require( '@stdlib/ndarray/shape' );
4950
var ndarray2array = require( '@stdlib/ndarray/to-array' );
5051

5152
var buffer = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
@@ -56,7 +57,7 @@ var offset = 0;
5657
var x = ndarray( 'generic', buffer, shape, strides, offset, 'row-major' );
5758
// returns <ndarray>
5859

59-
var sh = x.shape;
60+
var sh = getShape( x );
6061
// returns [ 3, 2 ]
6162

6263
var arr = ndarray2array( x );

0 commit comments

Comments
 (0)