mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
src: fix return type of method in string_search.h
`Vector::forward()` is supposed to return a `bool`. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user