mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
I.12: use a const string as mentioned in the text
This commit is contained in:
parent
b43874936f
commit
5eb1467d5e
|
@ -1928,7 +1928,7 @@ The assumption that the pointer to `char` pointed to a C-style string (a zero-te
|
|||
|
||||
// we can assume that p cannot be nullptr
|
||||
// we can assume that p points to a zero-terminated array of characters
|
||||
int length(not_null<zstring> p);
|
||||
int length(not_null<czstring> p);
|
||||
|
||||
Note: `length()` is, of course, `std::strlen()` in disguise.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user