From ec78b69d07805ba0e592342501e6bcd880eed3f5 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 22 Sep 2015 10:38:56 +0100 Subject: [PATCH] Fix a couple of typos in GSL section. --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e5b15cb..ff4186c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11335,7 +11335,7 @@ Reasons for that include * the pointer is used with an ABI * the pointer is part of the implementation of a resource handle. -An `owner` differs from a resource handle for a `T` by still requiring and explicit `delete`. +An `owner` differs from a resource handle for a `T` by still requiring an explicit `delete`. An `owner` is assumed to refer to an object on the free store (heap). @@ -11349,7 +11349,7 @@ If something is not supposed to be `nullptr`, say so: * `string_view` // `array_view` * `cstring_view` // `array_view` -A `*_view` refer to zero or more mutable `T`s unless `T` is a `const` type. +A `*_view` refers to zero or more mutable `T`s unless `T` is a `const` type. "Pointer arithmetic" is best done within `array_view`s. A `char*` that points to something that is not a C-style string (e.g., a pointer into an input buffer) should be represented by an `array_view`.