diff options
Diffstat (limited to 'absl/strings/str_split.h')
-rw-r--r-- | absl/strings/str_split.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/strings/str_split.h b/absl/strings/str_split.h index 4cfba8d0..c7eb280c 100644 --- a/absl/strings/str_split.h +++ b/absl/strings/str_split.h @@ -261,7 +261,8 @@ class MaxSplitsImpl { : delimiter_(delimiter), limit_(limit), count_(0) {} absl::string_view Find(absl::string_view text, size_t pos) { if (count_++ == limit_) { - return absl::string_view(text.end(), 0); // No more matches. + return absl::string_view(text.data() + text.size(), + 0); // No more matches. } return delimiter_.Find(text, pos); } |