From 4b414458cf5243326e2f1d04e82246f3d517ff27 Mon Sep 17 00:00:00 2001 From: beinhaerter <34543625+beinhaerter@users.noreply.github.com> Date: Thu, 13 Jun 2019 14:38:55 +0200 Subject: [PATCH] I.13: grammar and hint to `std::string_view` (#1443) - "a C-style, zero-terminated strings" is wrong, it must be either "C-style, zero-terminated strings" or "a C-style, zero-terminated string" - added hint to `std::string_view --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index a432c26..7fc04da 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1962,8 +1962,8 @@ This `draw2()` passes the same amount of information to `draw()`, but makes the ##### Exception -Use `zstring` and `czstring` to represent a C-style, zero-terminated strings. -But when doing so, use `string_span` from the [GSL](#GSL) to prevent range errors. +Use `zstring` and `czstring` to represent C-style, zero-terminated strings. +But when doing so, use `std::string_view` or `string_span` from the [GSL](#GSL) to prevent range errors. ##### Enforcement