aboutsummaryrefslogtreecommitdiffhomepage
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 8e37acb..5dd08b3 100644
--- a/absl/strings/string_view.h
+++ b/absl/strings/string_view.h
@@ -339,8 +339,8 @@ class string_view {
// string_view::substr()
//
- // Returns a "substring" of the `string_view` (at offset `post` and length
- // `n`) as another std::string views. This function throws `std::out_of_bounds` if
+ // Returns a "substring" of the `string_view` (at offset `pos` and length
+ // `n`) as another string_view. This function throws `std::out_of_bounds` if
// `pos > size'.
string_view substr(size_type pos, size_type n = npos) const {
if (ABSL_PREDICT_FALSE(pos > length_))