Skip to content

Commit a12d40e

Browse files
committed
Fix SpEL examples in reference guide
Closes gh-33907
1 parent 7f78193 commit a12d40e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

framework-docs/modules/ROOT/pages/core/expressions/language-ref/constructors.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Java::
1818
1919
// create new Inventor instance within the add() method of List
2020
p.parseExpression(
21-
"Members.add(new org.spring.samples.spel.inventor.Inventor(
22-
'Albert Einstein', 'German'))").getValue(societyContext);
21+
"Members.add(new org.spring.samples.spel.inventor.Inventor('Albert Einstein', 'German'))")
22+
.getValue(societyContext);
2323
----
2424
2525
Kotlin::

framework-docs/modules/ROOT/pages/core/expressions/language-ref/functions.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ potentially more efficient use cases if the `MethodHandle` target and parameters
110110
been fully bound prior to registration; however, partially bound handles are also
111111
supported.
112112

113-
Consider the `String#formatted(String, Object...)` instance method, which produces a
114-
message according to a template and a variable number of arguments.
113+
Consider the `String#formatted(Object...)` instance method, which produces a message
114+
according to a template and a variable number of arguments.
115115

116116
You can register and use the `formatted` method as a `MethodHandle`, as the following
117117
example shows:

0 commit comments

Comments
 (0)