diff --git a/AK/StringView.h b/AK/StringView.h index f03b07c385..c8874333ad 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -99,7 +99,7 @@ public: [[nodiscard]] Vector find_all(StringView needle) const; using SearchDirection = StringUtils::SearchDirection; - [[nodiscard]] Optional find_any_of(StringView needles, SearchDirection direction = SearchDirection::Forward) { return StringUtils::find_any_of(*this, needles, direction); } + [[nodiscard]] Optional find_any_of(StringView needles, SearchDirection direction = SearchDirection::Forward) const { return StringUtils::find_any_of(*this, needles, direction); } [[nodiscard]] constexpr StringView substring_view(size_t start, size_t length) const {