Skip to content

Commit c72e8dc

Browse files
jackzheng870bbatsov
authored andcommitted
Fix broken text formatting in String Concatenation
Reference: https://docs.asciidoctor.org/asciidoc/latest/text/literal-monospace/
1 parent 756129b commit c72e8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4912,9 +4912,9 @@ message = "This is the #{result}."
49124912

49134913
=== String Concatenation [[concat-strings]]
49144914

4915-
Avoid using `String#+` when you need to construct large data chunks.
4915+
Avoid using `pass:[String#+]` when you need to construct large data chunks.
49164916
Instead, use `String#<<`.
4917-
Concatenation mutates the string instance in-place and is always faster than `String#+`, which creates a bunch of new string objects.
4917+
Concatenation mutates the string instance in-place and is always faster than `pass:[String#+]`, which creates a bunch of new string objects.
49184918

49194919
[source,ruby]
49204920
----

0 commit comments

Comments
 (0)