Skip to content

Commit f965123

Browse files
committed
Correct SpEL example (matching its comment)
Issue: SPR-16111
1 parent 9bab7a2 commit f965123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/asciidoc/core/core-expressions.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ on literals. Varargs are also supported.
776776
[subs="verbatim,quotes"]
777777
----
778778
// string literal, evaluates to "bc"
779-
String c = parser.parseExpression("'abc'.substring(2, 3)").getValue(String.class);
779+
String bc = parser.parseExpression("'abc'.substring(1, 3)").getValue(String.class);
780780
781781
// evaluates to true
782782
boolean isMember = parser.parseExpression("isMember('Mihajlo Pupin')").getValue(

0 commit comments

Comments
 (0)