forked from OSchip/llvm-project
Spelling correction for docs for cppcoreguidelines-owning-memory
Summary: There's a typo in the docs, as mentioned in the title. Please see the diff. Reviewers: JonasToth Subscribers: sylvestre.ledru, nemanjai, kbarton, cfe-commits Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D60050 llvm-svn: 357371
This commit is contained in:
parent
b0e79823d6
commit
7fb58e98f5
|
@ -50,7 +50,7 @@ to be deleted.
|
|||
int* NonOwner = new int(42); // First warning here, since new must land in an owner
|
||||
delete NonOwner; // Second warning here, since only owners are allowed to be deleted
|
||||
|
||||
// Example Good, Ownership correclty stated
|
||||
// Example Good, Ownership correctly stated
|
||||
gsl::owner<int*> Owner = new int(42); // Good
|
||||
delete Owner; // Good as well, statically enforced, that only owners get deleted
|
||||
|
||||
|
|
Loading…
Reference in New Issue