about summary refs log tree commit diff
path: root/absl/strings/string_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/strings/string_view.h')
-rw-r--r--absl/strings/string_view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/strings/string_view.h b/absl/strings/string_view.h
index 033509ada239..951e9cbc039c 100644
--- a/absl/strings/string_view.h
+++ b/absl/strings/string_view.h
@@ -176,7 +176,7 @@ class string_view {
   constexpr string_view(const char* str)  // NOLINT(runtime/explicit)
       : ptr_(str), length_(StrLenInternal(str)) {}
 
-  // Implicit consructor of a `string_view` from a `const char*` and length
+  // Implicit constructor of a `string_view` from a `const char*` and length.
   constexpr string_view(const char* data, size_type len)
       : ptr_(data), length_(CheckLengthInternal(len)) {}
 
@@ -324,7 +324,7 @@ class string_view {
 
   // Explicit conversion operators
 
-  // Supports conversion to both `std::basic_string` where available.
+  // Converts to `std::basic_string`.
   template <typename A>
   explicit operator std::basic_string<char, traits_type, A>() const {
     if (!data()) return {};