[Documentation] Fixed typos in LibASTMatchers tutorial

There was one missing parenthesis and a typo in the mentioned
part of the documentation.

Differential Revision: https://reviews.llvm.org/D124738
This commit is contained in:
isuckatcs 2022-06-10 10:09:31 +02:00
parent b03567fe2b
commit 1d3d5ecea5
1 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ in the callback. So we start with:
.. code-block:: c++
hasCondition(binaryOperator(hasOperatorName("<"))
hasCondition(binaryOperator(hasOperatorName("<")))
It makes sense to ensure that the left-hand side is a reference to a
variable, and that the right-hand side has integer type.
@ -529,7 +529,7 @@ address, all we need to do is make sure neither ``ValueDecl`` (base class of
}
If execution reaches the end of ``LoopPrinter::run()``, we know that the
loop shell that looks like
loop shell looks like
.. code-block:: c++