From 4b15a57f96ba9814a5c1914fcb9d98736d05f620 Mon Sep 17 00:00:00 2001 From: hsutter Date: Tue, 29 Dec 2015 10:21:05 -0800 Subject: [PATCH] Applied the suggestion in PR #198. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e46ae47..348733f 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2536,7 +2536,7 @@ A `not_null` is assumed not to be the `nullptr`; a `T*` may be the `nullptr` ##### Reason -Clarity. Making it clear that a test for null isn't needed. +Clarity. A function with a `not_null` parameter makes it clear that the caller of the function is responsible for any `nullptr` checks that may be necessary. Similarly, a function with a return value of `not_null` makes it clear that the caller of the function does not need to check for `nullptr`. ##### Example