about summary refs log tree commit diff
path: root/absl
diff options
context:
space:
mode:
Diffstat (limited to 'absl')
-rw-r--r--absl/container/internal/common.h1
-rw-r--r--absl/strings/str_split.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/absl/container/internal/common.h b/absl/container/internal/common.h
index c7816566533d..aca1a95da81a 100644
--- a/absl/container/internal/common.h
+++ b/absl/container/internal/common.h
@@ -15,6 +15,7 @@
 #ifndef ABSL_CONTAINER_INTERNAL_CONTAINER_H_
 #define ABSL_CONTAINER_INTERNAL_CONTAINER_H_
 
+#include <cassert>
 #include <type_traits>
 
 #include "absl/meta/type_traits.h"
diff --git a/absl/strings/str_split.h b/absl/strings/str_split.h
index c7eb280c4113..485f24354d1a 100644
--- a/absl/strings/str_split.h
+++ b/absl/strings/str_split.h
@@ -96,9 +96,9 @@ namespace absl {
 //     absl::string_view Find(absl::string_view text, size_t pos) {
 //       auto found = text.find(c_, pos);
 //       if (found == absl::string_view::npos)
-//         return absl::string_view(text.end(), 0);
+//         return text.substr(text.size());
 //
-//       return absl::string_view(text, found, 1);
+//       return text.substr(found, 1);
 //     }
 //   };