Skip to content

Commit 797501d

Browse files
Abseil Teamcopybara-github
authored andcommitted
Minor documentation fix for absl::StrSplit()
PiperOrigin-RevId: 607095897 Change-Id: I077857f0b4c5cf8bbc62bfc8e51a20bb6845296c
1 parent 4618865 commit 797501d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/strings/str_split.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ using EnableSplitIfString =
456456
// // Stores results in a std::set<std::string>, which also performs
457457
// // de-duplication and orders the elements in ascending order.
458458
// std::set<std::string> a = absl::StrSplit("b,a,c,a,b", ',');
459-
// // v[0] == "a", v[1] == "b", v[2] = "c"
459+
// // a[0] == "a", a[1] == "b", a[2] == "c"
460460
//
461461
// // `StrSplit()` can be used within a range-based for loop, in which case
462462
// // each element will be of type `absl::string_view`.

0 commit comments

Comments
 (0)