Skip to content

Commit e28fa6c

Browse files
RaisinTendanielleadams
authored andcommittedFeb 16, 2021
src: fix return type of method in string_search.h
`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>
1 parent f5d1bf9 commit e28fa6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/string_search.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Vector {
3232

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.