Skip to content

Commit

Permalink
I.12: use a const string as mentioned in the text
Browse files Browse the repository at this point in the history
  • Loading branch information
itmm authored Sep 18, 2023
1 parent b438749 commit 5eb1467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 5eb1467

Please sign in to comment.