From bceec9e494605cfa20a15069b4ee0d14cfe85a54 Mon Sep 17 00:00:00 2001 From: Olaf Dietsche Date: Fri, 9 Sep 2016 18:44:19 +0200 Subject: [PATCH] CP.3: Fix example: function declarations --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index a0e61e0..f8c262a 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11622,8 +11622,8 @@ The less sharing you do, the less chance you have to wait on a lock (so performa ##### Example bool validate(const vector&); - Graph validate(const vector&); - Image validate(const vector&); + Graph temperature_gradiants(const vector&); + Image altitude_map(const vector&); // ... void process_readings(istream& socket1) @@ -11633,7 +11633,7 @@ The less sharing you do, the less chance you have to wait on a lock (so performa if (!socket1) throw Bad_input{}; auto h1 = async([&] { if (!validate(surface_readings) throw Invalide_data{}; }); - auto h2 = async([&] { return temparature_gradiants(surface_readings); }); + auto h2 = async([&] { return temperature_gradiants(surface_readings); }); auto h3 = async([&] { return altitude_map(surface_readings); }); // ... auto v1 = h1.get();