From f96769f97b6caa6d394f04805062cf4273ad5747 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Mon, 19 Dec 2016 10:08:58 +0100 Subject: [PATCH] Update painless-syntax.asciidoc Fix asciidoc syntax --- docs/reference/modules/scripting/painless-syntax.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/modules/scripting/painless-syntax.asciidoc b/docs/reference/modules/scripting/painless-syntax.asciidoc index 10d6d501412..e3a6ed24bc0 100644 --- a/docs/reference/modules/scripting/painless-syntax.asciidoc +++ b/docs/reference/modules/scripting/painless-syntax.asciidoc @@ -185,9 +185,9 @@ doesn't have a `foo.keyword` field but is the length of that field if it does. Lastly, `?:` is lazy so the right hand side is not evaluated at all if the left hand side isn't null. -NOTE: Unlike Groovy, Painless' `?:` operator only coalesces `null`, not `false` +NOTE: Unlike Groovy, Painless' ++?:++ operator only coalesces `null`, not `false` or http://groovy-lang.org/semantics.html#Groovy-Truth[falsy] values. Strictly -speaking Painless' `?:` is more like Kotlin's `?:` than Groovy's `?:`. +speaking Painless' ++?:++ is more like Kotlin's ++?:++ than Groovy's ++?:++. NOTE: The result of `?.` and `?:` can't be assigned to primitives. So `int[] someArray = null; int l = someArray?.length` and