Commit 797501d1 by Abseil Team Committed by Copybara-Service

Minor documentation fix for `absl::StrSplit()`

PiperOrigin-RevId: 607095897
Change-Id: I077857f0b4c5cf8bbc62bfc8e51a20bb6845296c
parent 4618865c
...@@ -456,7 +456,7 @@ using EnableSplitIfString = ...@@ -456,7 +456,7 @@ using EnableSplitIfString =
// // Stores results in a std::set<std::string>, which also performs // // Stores results in a std::set<std::string>, which also performs
// // de-duplication and orders the elements in ascending order. // // de-duplication and orders the elements in ascending order.
// std::set<std::string> a = absl::StrSplit("b,a,c,a,b", ','); // 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 // // `StrSplit()` can be used within a range-based for loop, in which case
// // each element will be of type `absl::string_view`. // // each element will be of type `absl::string_view`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment