From 803a7f6aef1f9f34e38bc63ad4e737150887b7c9 Mon Sep 17 00:00:00 2001 From: dextercd Date: Fri, 18 Sep 2015 17:50:40 +0200 Subject: [PATCH] Update CppCoreGuidelines.md --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ad167b6..0f494f5 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1668,7 +1668,7 @@ These can now be combined where needed: void read_and_print() { auto x = read(cin); - print(cout& os, x); + print(cout, x); } If there was a need, we could further templatize `read()` and `print()` on the data type, the I/O mechanism, etc. Example: