summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2024-02-14 13:53:56 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2024-02-14 13:54:59 -0800
commit797501d12ea767dabdc8d36674e083869e62ee7d (patch)
tree5110ffd70786b7cd17924979f5c96d1afa45e05d
parent4618865caf8596742a9fd7c28a70a46b5e277794 (diff)
Minor documentation fix for `absl::StrSplit()`
PiperOrigin-RevId: 607095897 Change-Id: I077857f0b4c5cf8bbc62bfc8e51a20bb6845296c
-rw-r--r--absl/strings/str_split.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/str_split.h b/absl/strings/str_split.h
index 87540278..49bff7b2 100644
--- a/absl/strings/str_split.h
+++ b/absl/strings/str_split.h
@@ -456,7 +456,7 @@ using EnableSplitIfString =
// // Stores results in a std::set<std::string>, which also performs
// // de-duplication and orders the elements in ascending order.
// std::set<std::string> a = absl::StrSplit("b,a,c,a,b", ',');
-// // v[0] == "a", v[1] == "b", v[2] = "c"
+// // a[0] == "a", a[1] == "b", a[2] == "c"
//
// // `StrSplit()` can be used within a range-based for loop, in which case
// // each element will be of type `absl::string_view`.