Browse Source

Polish documentation for SpEL Elvis operator

pull/34585/head
Sam Brannen 9 months ago
parent
commit
1780e30a43
  1. 8
      framework-docs/modules/ROOT/pages/core/expressions/language-ref/operator-elvis.adoc

8
framework-docs/modules/ROOT/pages/core/expressions/language-ref/operator-elvis.adoc

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
[[expressions-operator-elvis]]
= The Elvis Operator
The Elvis operator is a shortening of the ternary operator syntax and is used in the
https://www.groovy-lang.org/operators.html#_elvis_operator[Groovy] language. With the
ternary operator syntax, you often have to repeat a variable twice, as the following
Java example shows:
The Elvis operator (`?:`) is a shortening of the ternary operator syntax and is used in
the https://www.groovy-lang.org/operators.html#_elvis_operator[Groovy] language. With the
ternary operator syntax, you often have to repeat a variable twice, as the following Java
example shows:
[source,java,indent=0,subs="verbatim,quotes"]
----

Loading…
Cancel
Save