Polish documentation for SpEL Elvis operator

This commit is contained in:
Sam Brannen 2025-03-12 14:48:34 +01:00
parent c7b0550e43
commit 1780e30a43
1 changed files with 10 additions and 10 deletions

View File

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