Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e28fa6c

Browse filesBrowse files
RaisinTendanielleadams
authored andcommitted
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
Copy full SHA for e28fa6c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/string_search.h‎

Copy file name to clipboardExpand all lines: src/string_search.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.