Skip to content

Commit 27c7da9

Browse files
committed
Rename parameter in examples
1 parent 5e57bfe commit 27c7da9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/utils/for-each/lib/for_each.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var isFunction = require( '@stdlib/assert/is-function' );
1919
* @returns {Collection} input collection
2020
*
2121
* @example
22-
* function log( v, key, collection ) {
23-
* console.log( '%s: %d', key, v );
22+
* function log( v, index, collection ) {
23+
* console.log( '%s: %d', index, v );
2424
* }
2525
*
2626
* var arr = [ 1, 2, 3, 4 ];

lib/node_modules/@stdlib/utils/for-each/lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @example
99
* var forEach = require( '@stdlib/utils/for-each' );
1010
*
11-
* function log( v, key, collection ) {
12-
* console.log( '%s: %d', key, v );
11+
* function log( v, index, collection ) {
12+
* console.log( '%s: %d', index, v );
1313
* }
1414
*
1515
* var arr = [ 1, 2, 3, 4 ];

0 commit comments

Comments
 (0)