Skip to content

Commit 0067a75

Browse files
committed
Minor documentation refinements (backported from 5.1.x)
1 parent da06796 commit 0067a75

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

spring-messaging/src/main/java/org/springframework/messaging/simp/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Generic support for SImple Messaging Protocols including protocols such as STOMP.
2+
* Generic support for Simple Messaging Protocols including protocols such as STOMP.
33
*/
44
@NonNullApi
55
@NonNullFields

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,8 @@ the expression. A minimal example is:
10871087
"false ? 'trueExp' : 'falseExp'").getValue(String.class);
10881088
----
10891089

1090-
In this case, the boolean false results in returning the string value `'falseExp'`. A more
1091-
realistic example is shown below.
1090+
In this case, the boolean false results in returning the string value `'falseExp'`.
1091+
A more realistic example is shown below.
10921092

10931093
[source,java,indent=0]
10941094
[subs="verbatim,quotes"]
@@ -1112,10 +1112,10 @@ ternary operator.
11121112
[[expressions-operator-elvis]]
11131113
=== The Elvis Operator
11141114

1115-
The Elvis operator is a shortening of the ternary operator syntax and is used in the
1116-
http://www.groovy-lang.org/operators.html#_elvis_operator[Groovy] language.
1117-
With the ternary operator syntax you usually have to repeat a variable twice, for
1118-
example:
1115+
The Elvis operator is a shortening of the ternary operator syntax and is used in
1116+
the http://www.groovy-lang.org/operators.html#_elvis_operator[Groovy] language.
1117+
With the ternary operator syntax, you usually have to repeat a variable twice,
1118+
as the following example shows:
11191119

11201120
[source,groovy,indent=0]
11211121
[subs="verbatim,quotes"]
@@ -1124,7 +1124,8 @@ example:
11241124
String displayName = (name != null ? name : "Unknown");
11251125
----
11261126

1127-
Instead you can use the Elvis operator, named for the resemblance to Elvis' hair style.
1127+
Instead, you can use the Elvis operator (named for the resemblance to Elvis' hair style).
1128+
The following example shows how to use the Elvis operator:
11281129

11291130
[source,java,indent=0]
11301131
[subs="verbatim,quotes"]
@@ -1135,7 +1136,7 @@ Instead you can use the Elvis operator, named for the resemblance to Elvis' hair
11351136
System.out.println(name); // 'Unknown'
11361137
----
11371138

1138-
Here is a more complex example.
1139+
The following listing shows a more complex example:
11391140

11401141
[source,java,indent=0]
11411142
[subs="verbatim,quotes"]

0 commit comments

Comments
 (0)