diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2db8b22..76322cb 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3105,7 +3105,7 @@ To compare, if we passed out all values as return values, we would something lik pair get_string(istream& is); // not recommended { string s; - cin >> s; + is >> s; return {is, s}; }