From 7fb58e98f547ee4cfa2dceac4367fc5942483e90 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 31 Mar 2019 21:53:00 +0000 Subject: [PATCH] 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 --- .../docs/clang-tidy/checks/cppcoreguidelines-owning-memory.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-owning-memory.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-owning-memory.rst index 3f6f8c4b7f9a..cd1901630dfe 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-owning-memory.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-owning-memory.rst @@ -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 Owner = new int(42); // Good delete Owner; // Good as well, statically enforced, that only owners get deleted