From 9e9950353aa3af20ce00b1e8ef7f9bf455a5f640 Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Fri, 20 Dec 2019 16:26:14 -0500 Subject: [PATCH] typos noted in comments to 2fdc696 --- CppCoreGuidelines.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 7aa4e0f..23f1722 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -19250,7 +19250,7 @@ Container rule summary: * [SL.con.1: Prefer using STL `array` or `vector` instead of a C array](#Rsl-arrays) * [SL.con.2: Prefer using STL `vector` by default unless you have a reason to use a different container](#Rsl-vector) * [SL.con.3: Avoid bounds errors](#Rsl-bounds) -* [SL.con.4: don't use `memset` or `memcpy` for arguments that are not non-trivially-copyable](#Rsl-copy) +* [SL.con.4: don't use `memset` or `memcpy` for arguments that are not trivially-copyable](#Rsl-copy) ### SL.con.1: Prefer using STL `array` or `vector` instead of a C array @@ -19403,7 +19403,7 @@ If code is using an unmodified standard library, then there are still workaround This rule is part of the [bounds profile](#SS-bounds). -### SL.con.4: don't use `memset` or `memcpy` for arguments that are not non-trivially-copyable +### SL.con.4: don't use `memset` or `memcpy` for arguments that are not trivially-copyable ##### Reason @@ -19431,7 +19431,7 @@ Similarly for (w)memset, (w)memcpy, (w)memmove, and (w)memcmp memcmp(&a, &b, sizeof(derived)); } -Insted, define proper default initialization, copy, and comparison functions +Instead, define proper default initialization, copy, and comparison functions void g(derived& a, derived& b) { @@ -19442,7 +19442,7 @@ Insted, define proper default initialization, copy, and comparison functions ##### Enforcement -* Flag the use of those functions for types theat are not trivially copyable +* Flag the use of those functions for types that are not trivially copyable **TODO Notes**: