mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
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
This commit is contained in:
parent
040ea419cc
commit
4b414458cf
|
@ -1962,8 +1962,8 @@ This `draw2()` passes the same amount of information to `draw()`, but makes the
|
||||||
|
|
||||||
##### Exception
|
##### Exception
|
||||||
|
|
||||||
Use `zstring` and `czstring` to represent a C-style, zero-terminated strings.
|
Use `zstring` and `czstring` to represent C-style, zero-terminated strings.
|
||||||
But when doing so, use `string_span` from the [GSL](#GSL) to prevent range errors.
|
But when doing so, use `std::string_view` or `string_span` from the [GSL](#GSL) to prevent range errors.
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user