[NFC] Correct typo in comment after D76038
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Thu, 23 Apr 2020 00:26:02 +0000 (02:26 +0200)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Thu, 23 Apr 2020 00:26:02 +0000 (02:26 +0200)
clang/include/clang/AST/DeclBase.h

index 9187537..da8b25b 100644 (file)
@@ -871,11 +871,11 @@ public:
 
   /// Returns true if this declaration is lexically inside a function or inside
   /// a variable initializer. It recognizes non-defining declarations as well
-  /// as members of local classes:
+  /// as members of local classes and lambdas:
   /// \code
   ///     void foo() { void bar(); }
   ///     void foo2() { class ABC { void bar(); }; }
-  ///     inline int x = [](){ return 0; };
+  ///     inline int x = [](){ return 0; }();
   /// \endcode
   bool isInLocalScope() const;