Explorar o código

[DOCS] Correct `for in` example in Painless docs (#49991)

Adds a needed `def` keyword to the `for in` example in the Painless docs.
James Rodewig %!s(int64=5) %!d(string=hai) anos
pai
achega
d12637a3b2

+ 1 - 1
docs/painless/painless-lang-spec/painless-statements.asciidoc

@@ -25,7 +25,7 @@ Painless also supports the `for in` syntax from Groovy:
 
 [source,painless]
 ---------------------------------------------------------
-for (item : list) {
+for (def item : list) {
   ...
 }
 ---------------------------------------------------------