Browse Source

Polishing

See gh-21778
pull/23465/head
Sebastien Deleuze 5 years ago
parent
commit
76645644b1
  1. 4
      src/docs/asciidoc/core/core-expressions.adoc

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

@ -176,7 +176,7 @@ example shows: @@ -176,7 +176,7 @@ example shows:
.Java
----
ExpressionParser parser = new SpelExpressionParser();
Expression exp = parser.parseExpression("new String('hello world').toUpperCase()");
Expression exp = parser.parseExpression("new String('hello world').toUpperCase()"); // <1>
String message = exp.getValue(String.class);
----
<1> Construct a new `String` from the literal and make it be upper case.
@ -185,7 +185,7 @@ example shows: @@ -185,7 +185,7 @@ example shows:
.Kotlin
----
val parser = SpelExpressionParser()
val exp = parser.parseExpression("new String('hello world').toUpperCase()")
val exp = parser.parseExpression("new String('hello world').toUpperCase()") // <1>
val message = exp.getValue(String::class.java)
----
<1> Construct a new `String` from the literal and make it be upper case.

Loading…
Cancel
Save