From 796ce80102159c696b225c43df3d3426b6a6f60a Mon Sep 17 00:00:00 2001 From: beinhaerter <34543625+beinhaerter@users.noreply.github.com> Date: Thu, 1 Aug 2019 20:22:26 +0200 Subject: [PATCH] E section, different stuff (#1480) - E.15: "of" -> "or" - E.27: capitalization --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index fbeb6a8..caf1786 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -15644,7 +15644,7 @@ Instead, use a reference: catch (exception& e) { /* ... */ } -of - typically better still - a `const` reference: +or - typically better still - a `const` reference: catch (const exception& e) { /* ... */ } @@ -15917,8 +15917,8 @@ Systematic use of any error-handling strategy minimizes the chance of forgetting There are several issues to be addressed: -* how do you transmit an error indicator from out of a function? -* how do you release all resources from a function before doing an error exit? +* How do you transmit an error indicator from out of a function? +* How do you release all resources from a function before doing an error exit? * What do you use as an error indicator? In general, returning an error indicator implies returning two values: The result and an error indicator.