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:
Sylvestre Ledru 2019-03-31 21:53:00 +00:00
parent b0e79823d6
commit 7fb58e98f5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ to be deleted.
int* NonOwner = new int(42); // First warning here, since new must land in an owner 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 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 gsl::owner<int*> Owner = new int(42); // Good
delete Owner; // Good as well, statically enforced, that only owners get deleted delete Owner; // Good as well, statically enforced, that only owners get deleted