Skip to content

Commit ded03f1

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 594f7e8 commit ded03f1

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/gfind-index

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/blas/ext/base/gfind-index/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var idx = gfindIndex( x.length, x, 1, isEven );
4545
// returns 3
4646
```
4747

48-
If the function is unable to find an element, the function returns `-1`.
48+
If no element passes a test implemented by a predicate function, the function returns `-1`.
4949

5050
```javascript
5151
function isEven( v ) {
@@ -94,7 +94,7 @@ var count = ctx.count;
9494
// returns 4
9595
```
9696

97-
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to check every other element:
97+
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to test every other element:
9898

9999
```javascript
100100
function isEven( v ) {
@@ -116,10 +116,10 @@ function isEven( v ) {
116116
return v % 2.0 === 0.0;
117117
}
118118

119-
// Initial array...
119+
// Initial array:
120120
var x0 = new Float64Array( [ 1.0, 3.0, 4.0, -5.0, 7.0, 6.0 ] );
121121

122-
// Create an offset view...
122+
// Create an offset view:
123123
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
124124

125125
var idx = gfindIndex( 3, x1, 2, isEven );

0 commit comments

Comments
 (0)