Skip to content

Commit

Permalink
src: fix return type of method in string_search.h
Browse files Browse the repository at this point in the history
`Vector::forward()` is supposed to return a `bool`.

PR-URL: nodejs#37167
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
RaisinTen committed Feb 10, 2021
1 parent 9d2125e commit e045dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string_search.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Vector {

// Returns true if the Vector is front-to-back, false if back-to-front.
// In the latter case, v[0] corresponds to the *end* of the memory range.
size_t forward() const { return is_forward_; }
bool forward() const { return is_forward_; }

// Access individual vector elements - checks bounds in debug mode.
T& operator[](size_t index) const {
Expand Down

0 comments on commit e045dda

Please sign in to comment.