From 8fe5c3c5f2c09a1b1f54e17ef46f926ea447d35f Mon Sep 17 00:00:00 2001 From: Jan Schultke Date: Wed, 24 Jan 2024 23:07:34 +0100 Subject: [PATCH] fix incorrect code transformation Co-authored-by: Jonathan Wakely --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 534b2bf99..c01984c5e 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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 }