Skip to content

Commit 34af3e0

Browse files
committed
src: fix return type of method in string_search.h
`Vector::forward()` is supposed to return a `bool`.
1 parent 06d7495 commit 34af3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_search.h

Lines changed: 1 addition & 1 deletion
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)