mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #218 from Jiwan/Jiwan-change-nullptr-passing-exemple
Fixed minor error in I.12: Declare a pointer that must not be null as not_nul
This commit is contained in:
commit
1ab6344b44
|
@ -1445,7 +1445,7 @@ Every object passed as a raw pointer (or iterator) is assumed to be owned by the
|
||||||
|
|
||||||
##### Example
|
##### Example
|
||||||
|
|
||||||
int length(const char* p); // it is not clear whether strlen(nullptr) is valid
|
int length(const char* p); // it is not clear whether length(nullptr) is valid
|
||||||
|
|
||||||
length(nullptr); // OK?
|
length(nullptr); // OK?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user