diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2da43fc4f..65052dc2c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -9879,7 +9879,7 @@ This is more efficient: ##### Enforcement -(Simple) Warn if a function uses a `Shared_pointer` with an object allocated within the function, but never returns the `Shared_pointer` or passes it to a function requiring a `Shared_pointer&`. Suggest using `unique_ptr` instead. +(Simple) Warn if a function uses a `Shared_pointer` with an object allocated within the function, but never returns the `Shared_pointer` or passes it to a function requiring a `Shared_pointer`. Suggest using `unique_ptr` instead. ### R.22: Use `make_shared()` to make `shared_ptr`s