diff --git a/source/ranges.tex b/source/ranges.tex index 4e5c1763a1..c1b1795099 100644 --- a/source/ranges.tex +++ b/source/ranges.tex @@ -6136,7 +6136,7 @@ \begin{example} \begin{codeblock} vector 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} @@ -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*}