[mlir][docs] Add missing parentheses in example code on walkers.

`getFunction` was missing parentheses.

Reviewed By: ftynse, mehdi_amini

Differential Revision: https://reviews.llvm.org/D123999
This commit is contained in:
Ingo Müller 2022-04-19 13:21:16 +00:00
parent 3c776c70a7
commit 1fe1f913c5
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ Operation, for example the following will apply the callback only on `LinalgOp`
operations nested inside the function:
```c++
getFunction.walk([](LinalgOp linalgOp) {
getFunction().walk([](LinalgOp linalgOp) {
// process LinalgOp `linalgOp`.
});
```