summaryrefslogtreecommitdiff
path: root/absl/strings
diff options
context:
space:
mode:
Diffstat (limited to 'absl/strings')
-rw-r--r--absl/strings/match.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/absl/strings/match.h b/absl/strings/match.h
index 6005533c..108b6048 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()