[DOCS] Correct `for in` example in Painless docs (#49991)
Adds a needed `def` keyword to the `for in` example in the Painless docs.
This commit is contained in:
parent
d073bccaad
commit
322dabe3de
|
@ -25,7 +25,7 @@ Painless also supports the `for in` syntax from Groovy:
|
||||||
|
|
||||||
[source,painless]
|
[source,painless]
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
for (item : list) {
|
for (def item : list) {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue