Skip to content

Commit

Permalink
Missed joins
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLaskey committed Mar 16, 2024
1 parent 1852da9 commit 69392c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/lang/StringTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public List<Object> values() {
* String student = "Mary";
* String teacher = "Johnson";
* StringTemplate st = "The student \{student} is in \{teacher}'s classroom.";
* String result = st.str(); // @highlight substring="join()"
* String result = st.str(); // @highlight substring="str()"
*}
* In the above example, the value of {@code result} will be
* {@code "The student Mary is in Johnson's classroom."}. This is
Expand All @@ -200,7 +200,7 @@ private String str() {
* String student = "Mary";
* String teacher = "Johnson";
* StringTemplate st = "The student \{student} is in \{teacher}'s classroom.";
* String result = StringTemplate.str(st); // @highlight substring="join()"
* String result = StringTemplate.str(st); // @highlight substring="str()"
*}
* In the above example, the value of {@code result} will be
* {@code "The student Mary is in Johnson's classroom."}. This is
Expand Down

0 comments on commit 69392c7

Please sign in to comment.