[clang-tools-extra] fc1e146 - Fix documentation typo.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 12 11:39:28 PDT 2021


Author: Richard Smith
Date: 2021-04-12T11:39:08-07:00
New Revision: fc1e146e4412334d6c70173c345a698a01b122b8

URL: https://github.com/llvm/llvm-project/commit/fc1e146e4412334d6c70173c345a698a01b122b8
DIFF: https://github.com/llvm/llvm-project/commit/fc1e146e4412334d6c70173c345a698a01b122b8.diff

LOG: Fix documentation typo.

Added: 
    

Modified: 
    clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst
index 3048db8682a0..1f5639cdb88b 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst
@@ -41,8 +41,8 @@ transforms to:
 
 .. code-block:: c++
 
-    [[nodiscard] bool empty() const;
-    [[nodiscard] bool empty(int i) const;
+    [[nodiscard]] bool empty() const;
+    [[nodiscard]] bool empty(int i) const;
 
 Options
 -------


        


More information about the cfe-commits mailing list