diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 90332ef..f8b831b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8263,7 +8263,7 @@ If pointer semantics are required (e.g., because the return type needs to refer * (Simple) Warn on `delete` of a raw pointer that is not an `owner`. * (Moderate) Warn on failure to either `reset` or explicitly `delete` an `owner` pointer on every code path. -* (Simple) Warn if the return value of `new` or a function call with return value of pointer type is assigned to a raw pointer. +* (Simple) Warn if the return value of `new` is assigned to a raw pointer. * (Simple) Warn if a function returns an object that was allocated within the function but has a move constructor. Suggest considering returning it by value instead.