Skip to content

Commit

Permalink
[range.join.with.overview,range.split.overview] use qualified name in…
Browse files Browse the repository at this point in the history
… examples (#5683)
  • Loading branch information
hewillk committed Jul 29, 2022
1 parent d59a4f3 commit 78b91e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6136,7 +6136,7 @@
\begin{example}
\begin{codeblock}
vector<string> vs = {"the", "quick", "brown", "fox"};
for (char c : vs | join_with('-')) {
for (char c : vs | views::join_with('-')) {
cout << c;
}
// The above prints \tcode{the-quick-brown-fox}
Expand Down Expand Up @@ -7278,7 +7278,7 @@
\begin{example}
\begin{codeblock}
string str{"the quick brown fox"};
for (string_view word : split(str, ' ')) {
for (string_view word : views::split(str, ' ')) {
cout << word << '*';
}
// The above prints \tcode{the*quick*brown*fox*}
Expand Down

0 comments on commit 78b91e8

Please sign in to comment.