From 5eb1467d5e8e59094e07f73fc8e1de9805e0ea78 Mon Sep 17 00:00:00 2001 From: Timm Knape Date: Mon, 18 Sep 2023 19:40:08 +0200 Subject: [PATCH] I.12: use a const string as mentioned in the text --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index d6b82c5..8ed239c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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 p); + int length(not_null p); Note: `length()` is, of course, `std::strlen()` in disguise.