mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix F.16 (Use T* or owner<T*> to designate a single object) to use consistent variable name in the example provided.
This commit is contained in:
committed by
Richard Holmes
parent
ccdb10b403
commit
f13a89539e
@@ -2256,7 +2256,7 @@ Consider:
|
|||||||
|
|
||||||
int length(Record* p);
|
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<Record*> p); // it is the caller's job to make sure p != nullptr
|
int length(not_null<Record*> p); // it is the caller's job to make sure p != nullptr
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user