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: #37167
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
RaisinTen authored and targos committed May 1, 2021
1 parent 105b863 commit bf16d28
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 bf16d28

Please sign in to comment.