From f6e52900a289d9aa2d93c6b0ad4f24b52c11cc4c Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 10 Jan 2024 17:39:09 +0100 Subject: [PATCH] Polish SpEL documentation --- .../modules/ROOT/pages/core/expressions/evaluation.adoc | 8 ++++---- .../expressions/language-ref/collection-projection.adoc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc b/framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc index fe76141897e3..db5494831bb8 100644 --- a/framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc +++ b/framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc @@ -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:: + @@ -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 @@ -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:: + @@ -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 diff --git a/framework-docs/modules/ROOT/pages/core/expressions/language-ref/collection-projection.adoc b/framework-docs/modules/ROOT/pages/core/expressions/language-ref/collection-projection.adoc index 83f492766dd0..101fc5cc9f47 100644 --- a/framework-docs/modules/ROOT/pages/core/expressions/language-ref/collection-projection.adoc +++ b/framework-docs/modules/ROOT/pages/core/expressions/language-ref/collection-projection.adoc @@ -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]