F.21 add loop increment in bad example (#2141)

to mimic the previous examples and avoid an infinite loop.
pull/2156/head
Timm Knape 2 years ago committed by GitHub
parent b6363bbf11
commit 4ad63d7d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3301,7 +3301,7 @@ To compare, if we passed out all values as return values, we would something lik
return {in, move(s)}; return {in, move(s)};
} }
for (auto p = get_string(cin); p.first; ) { for (auto p = get_string(cin); p.first; p.second = get_string(p.first).second) {
// do something with p.second // do something with p.second
} }

Loading…
Cancel
Save