From f20544aa5244084dd36bbbdf7ac02079cb9671a1 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 19 Oct 2012 00:47:07 +0000 Subject: [PATCH] Fix typo in comment. llvm-svn: 166253 --- clang/include/clang/ASTMatchers/ASTMatchers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 1550fa2..384b01f 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -1410,7 +1410,7 @@ forEachDescendant( /// void f() { if (true) { int x = 42; } } /// void g() { for (;;) { int x = 43; } } /// \endcode -/// \c expr(integerLiteral(hasAncsestor(ifStmt()))) matches \c 42, but not 43. +/// \c expr(integerLiteral(hasAncestor(ifStmt()))) matches \c 42, but not 43. /// /// Usable as: Any Matcher template -- 2.7.4