From 7993de54d2ee1d6a605f433cf24dbec23abff357 Mon Sep 17 00:00:00 2001 From: zarucki Date: Tue, 31 Oct 2017 23:24:01 +0100 Subject: [PATCH] Misleading incorrect for in loop. (#27195) --- docs/painless/painless-syntax.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/painless/painless-syntax.asciidoc b/docs/painless/painless-syntax.asciidoc index 79e830c05d21c..6d424d01f2625 100644 --- a/docs/painless/painless-syntax.asciidoc +++ b/docs/painless/painless-syntax.asciidoc @@ -14,7 +14,7 @@ Painless also supports the `for in` syntax from Groovy: [source,painless] --------------------------------------------------------- -for (item : list) { +for (def item : list) { ... } ---------------------------------------------------------