Skip to content

Commit 84242f1

Browse files
clemp6rPhillip Webb
authored andcommitted
Fix elvis operator mistake in reference docs
In the given example the expression using the Elvis operator will return "Nikola Tesla" and not "Mike Tesla". Issue: SPR-10850
1 parent 365ce55 commit 84242f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reference/docbook/expressions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ StandardEvaluationContext context = new StandardEvaluationContext(tesla);
980980

981981
String name = parser.parseExpression("Name?:'Elvis Presley'").getValue(context, String.class);
982982

983-
System.out.println(name); // Mike Tesla
983+
System.out.println(name); // Nikola Tesla
984984

985985
tesla.setName(null);
986986

0 commit comments

Comments
 (0)