summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
index 54a70625a4e..beec1d5fb6c 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
@@ -8,8 +8,10 @@ The latter is shorter, simpler and does not require use of raw pointer APIs.
.. code-block:: c++
+ std::unique_ptr<int> P;
delete P.release();
// becomes
+ std::unique_ptr<int> P;
P = nullptr;
OpenPOWER on IntegriCloud