From f13a89539ec8960bb0722a6b74da42c5ebed280e Mon Sep 17 00:00:00 2001 From: Richard Holmes Date: Sun, 8 Nov 2015 22:17:17 -0600 Subject: [PATCH] Fix F.16 (Use T* or owner to designate a single object) to use consistent variable name in the example provided. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index cb26077..23c52a3 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2256,7 +2256,7 @@ Consider: int length(Record* p); -When I call `length(r)` should I test for `r == nullptr` first? Should the implementation of `length()` test for `p == nullptr`? +When I call `length(p)` should I test for `p == nullptr` first? Should the implementation of `length()` test for `p == nullptr`? int length(not_null p); // it is the caller's job to make sure p != nullptr