diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4c5d4bd..0ac5f1f 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1254,7 +1254,7 @@ However, if failing to make a connection is considerd an error, then a failure s **Exception**: Many traditional interface functions (e.g., UNIX signal handlers) use error codes (e.g., `errno`) to report what are really status codes, rather than errors. You don't have good alternative to using such, so calling these does not violate the rule. -**Alternative**: If you can't use exceptions (e.g. because your code is full of old-style raw-pointer use or because there are hard-real-rime constraints), +**Alternative**: If you can't use exceptions (e.g. because your code is full of old-style raw-pointer use or because there are hard-real-time constraints), consider using a style that returns a pair of values: int val;