diff options
Diffstat (limited to 'absl/strings/match.h')
-rw-r--r-- | absl/strings/match.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/absl/strings/match.h b/absl/strings/match.h index 6005533c992a..108b6048b048 100644 --- a/absl/strings/match.h +++ b/absl/strings/match.h @@ -43,8 +43,7 @@ namespace absl { // // Returns whether a given std::string `haystack` contains the substring `needle`. inline bool StrContains(absl::string_view haystack, absl::string_view needle) { - return static_cast<absl::string_view::size_type>(haystack.find(needle, 0)) != - haystack.npos; + return haystack.find(needle, 0) != haystack.npos; } // StartsWith() |