From 571ab494a8d62b860610f21a41bb16c7eabecd26 Mon Sep 17 00:00:00 2001 From: Amir Livneh Date: Fri, 8 Mar 2019 09:16:56 -0500 Subject: [PATCH] Use consistent tense and remove repetition in E introduction (#1372) --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index da9ab69..d861b9c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -15152,8 +15152,8 @@ Error handling involves: * Detecting an error * Transmitting information about an error to some handler code -* Preserve the state of a program in a valid state -* Avoid resource leaks +* Preserving a valid state of the program +* Avoiding resource leaks It is not possible to recover from all errors. If recovery from an error is not possible, it is important to quickly "get out" in a well-defined way. A strategy for error handling must be simple, or it becomes a source of even worse errors. Untested and rarely executed error-handling code is itself the source of many bugs.