Skip to content

Commit

Permalink
Polish SpEL documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 10, 2024
1 parent 62b5e42 commit f6e5290
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Java::
Expression exp = parser.parseExpression("'Hello World'"); // <1>
String message = (String) exp.getValue();
----
<1> The value of the message variable is `'Hello World'`.
<1> The value of the message variable is `"Hello World"`.
Kotlin::
+
Expand All @@ -28,7 +28,7 @@ Kotlin::
val exp = parser.parseExpression("'Hello World'") // <1>
val message = exp.value as String
----
<1> The value of the message variable is `'Hello World'`.
<1> The value of the message variable is `"Hello World"`.
======

The SpEL classes and interfaces you are most likely to use are located in the
Expand Down Expand Up @@ -57,7 +57,7 @@ Java::
Expression exp = parser.parseExpression("'Hello World'.concat('!')"); // <1>
String message = (String) exp.getValue();
----
<1> The value of `message` is now 'Hello World!'.
<1> The value of `message` is now `"Hello World!"`.
Kotlin::
+
Expand All @@ -67,7 +67,7 @@ Kotlin::
val exp = parser.parseExpression("'Hello World'.concat('!')") // <1>
val message = exp.value as String
----
<1> The value of `message` is now 'Hello World!'.
<1> The value of `message` is now `"Hello World!"`.
======

The following example demonstrates how to access the `Bytes` JavaBean property of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Projection lets a collection drive the evaluation of a sub-expression, and the result is
a new collection. The syntax for projection is `.![projectionExpression]`. For example,
suppose we have a list of inventors but want the list of cities where they were born.
Effectively, we want to evaluate 'placeOfBirth.city' for every entry in the inventor
Effectively, we want to evaluate `placeOfBirth.city` for every entry in the inventor
list. The following example uses projection to do so:

[tabs]
Expand Down

0 comments on commit f6e5290

Please sign in to comment.