diff options
author | Darshan Sen <raisinten@gmail.com> | 2021-02-01 17:00:04 +0300 |
---|---|---|
committer | Darshan Sen <raisinten@gmail.com> | 2021-02-10 16:26:08 +0300 |
commit | e045ddad54e534d7cf1db4338431c2ce3f9607d2 (patch) | |
tree | e9b21762bdab81b3f6d55048363ce7ef788bd65b /src | |
parent | 9d2125e3bfeaa36692ded547a50c9579ddc39e20 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/string_search.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_search.h b/src/string_search.h index 3648bc015ab..cd9ef320a81 100644 --- a/src/string_search.h +++ b/src/string_search.h @@ -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 { |