Skip to content

Commit 28a6474

Browse files
committed
docs: fix example code
--- 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: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 636e9ba commit 28a6474

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

lib/node_modules/@stdlib/array/base/broadcasted-quaternary3d/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var w = filled3dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros3d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary3d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/broadcasted-quaternary4d/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bquaternary4d( [ x, y, z, w, out ], shapes, add );
6464

6565
The function accepts the following arguments:
6666

67-
- **arrays**: array-like object containing two input nested arrays and one output nested array.
67+
- **arrays**: array-like object containing four input nested arrays and one output nested array.
6868
- **shapes**: array shapes.
6969
- **fcn**: quaternary function to apply.
7070

@@ -116,7 +116,7 @@ var w = filled4dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros4d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary4d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/broadcasted-quaternary5d/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var w = filled5dBy( shapes[ 3 ], discreteUniform( -100, 100 ) );
116116
console.log( w );
117117

118118
var out = zeros5d( shapes[ 4 ] );
119-
console.log( z );
119+
console.log( out );
120120

121121
bquaternary5d( [ x, y, z, w, out ], shapes, add );
122122
console.log( out );

lib/node_modules/@stdlib/array/base/count-ifs/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>(
144144
* var x1 = [ -1, -2, 4, 5, -8 ];
145145
* var x2 = [ 0, 4, 3, 2, 12 ];
146146
*
147-
* var n = countIfs( x0, predicate0, x1, predicate1 );
147+
* var n = countIfs( x0, predicate0, x1, predicate1, x2, predicate2 );
148148
* // returns 2
149149
*/
150150
declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>( x0: U, predicate0: Predicate<T, U>, x1: U, predicate1: Predicate<T, U>, x2: U, predicate2: Predicate<T, U> ): number;
@@ -230,7 +230,7 @@ declare function countIfs<T = unknown, U extends InputArray<T> = InputArray<T>>(
230230
* var x1 = [ -1, -2, 4, 5, -8 ];
231231
* var x2 = [ 0, 4, 3, 2, 12 ];
232232
* var x3 = [ 2, 9, 3, 6, 5 ];
233-
* var x4 = [ false, true, false, true, true ]
233+
* var x4 = [ false, true, false, true, true ];
234234
*
235235
* var n = countIfs( x0, predicate0, x1, predicate1, x3, predicate3, x4, predicate4 );
236236
* // returns 2

lib/node_modules/@stdlib/array/base/cuany-by/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type Ternary<T, U> = ( this: U, value: T, index: number, arr: Collection<T> | Ac
6767
type Predicate<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>;
6868

6969
/**
70-
* Interface describing `cunanyBy`.
70+
* Interface describing `cuanyBy`.
7171
*/
7272
interface CuAnyBy {
7373
/**
@@ -86,7 +86,7 @@ interface CuAnyBy {
8686
* var x = [ 0, 0, 0, 1, 0 ];
8787
*
8888
* var y = cuanyBy( x, isPositive );
89-
* // returns [ false, false, false, true, true ];
89+
* // returns [ false, false, false, true, true ];
9090
*/
9191
<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, predicate: Predicate<T, U>, thisArg?: ThisParameterType<Predicate<T, U>> ): Array<boolean>;
9292

lib/node_modules/@stdlib/array/base/cuany/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface CuAny {
3636
* var x = [ false, false , true, false , false ];
3737
*
3838
* var y = cuany( x );
39-
* // returns [ false, false, true, true, true ];
39+
* // returns [ false, false, true, true, true ];
4040
*/
4141
( x: Collection | AccessorArrayLike<any> ): Array<boolean>;
4242

@@ -53,7 +53,7 @@ interface CuAny {
5353
* var x = [ false, false, true, false, false ];
5454
* var y = [ false, null, false, null, false, null, false, null, false, null ];
5555
*
56-
* var arr = cuany.assign( x, y, 2, 0 );,
56+
* var arr = cuany.assign( x, y, 2, 0 );
5757
* // returns [ false, null, false, null, true, null, true, null, true, null ];
5858
*/
5959
assign<T, U extends Collection<T> | AccessorArrayLike<T>>( x: Collection | AccessorArrayLike<any>, y: U, stride: number, offset: number ): U;

lib/node_modules/@stdlib/array/base/cuevery-by-right/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ interface CueveryByRight {
188188
* var x = [ 1, 0, 0, 1, 1 ];
189189
* var y = [ false, null, false, null, false, null, false, null, false, null ];
190190
*
191-
* var arr = cueveryByRight.assign( x, 2, y, 2, 0, isPositive );
191+
* var arr = cueveryByRight.assign( x, y, 2, 0, isPositive );
192192
* // returns [ true, null, true, null, false, null, false, null, false, null ]
193193
*/
194194
declare var cueveryByRight: CueveryByRight;

lib/node_modules/@stdlib/array/base/cuevery-by/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ interface CuEveryBy {
8585
* var x = [ 1, 1, 1, 0, 0 ];
8686
*
8787
* var y = cueveryBy( x, isPositive );
88-
* // returns [ true, true, true, false, false ];
88+
* // returns [ true, true, true, false, false ];
8989
*/
9090
<T = unknown, U = unknown>( x: Collection<T> | AccessorArrayLike<T>, predicate: Predicate<T, U>, thisArg?: ThisParameterType<Predicate<T, U>> ): Array<boolean>;
9191

lib/node_modules/@stdlib/array/base/cuevery/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface CuEvery {
3636
* var x = [ true, true, true, false, true ];
3737
*
3838
* var y = cuevery( x );
39-
* // returns [ true, true, true, false, false ];
39+
* // returns [ true, true, true, false, false ];
4040
*/
4141
( x: Collection | AccessorArrayLike<any> ): Array<boolean>;
4242

lib/node_modules/@stdlib/array/base/cuevery/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var assign = require( './assign.js' );
2727
// MAIN //
2828

2929
/**
30-
* Cumulatively tests whether at every element in a provided array is truthy.
30+
* Cumulatively tests whether every element in a provided array is truthy.
3131
*
3232
* @param {Collection} x - input array
3333
* @returns {Array} output array

0 commit comments

Comments
 (0)