Skip to content

Commit

Permalink
fix incorrect code transformation
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Wakely <[email protected]>
  • Loading branch information
Eisenwave and jwakely authored Jan 24, 2024
1 parent ec83868 commit 8fe5c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -3304,7 +3304,7 @@ To compare, if we passed out all values as return values, we would something lik
return { in, move(s) };
}

for (auto [in, s] = get_string(cin); in; s = get_string(stream).s) {
for (auto [in, s] = get_string(cin); in; s = get_string(in).s) {
// do something with string
}

Expand Down

0 comments on commit 8fe5c3c

Please sign in to comment.