Skip to content

Commit 398a985

Browse files
committed
Use single quotes for backslashes in StringConcatToTextBlock.md
1 parent e4d7583 commit 398a985

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/bugpattern/StringConcatToTextBlock.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ String message =
2929

3030
## Trailing newlines
3131

32-
If the string should not contain a trailing newline, use a `\ ` to escape the
32+
If the string should not contain a trailing newline, use a '\' to escape the
3333
final newline in the text block. That is, these two strings are equivalent:
3434

3535
```java
@@ -46,11 +46,11 @@ String s =
4646

4747
The suggested fixes for this check preserve the exact contents of the original
4848
string, so if the original string doesn't include a trailing newline the fix
49-
will use a `\ ` to escape the last newline.
49+
will use a '\' to escape the last newline.
5050

5151
If the whitespace in the string isn't significant, for example because the
5252
string value will be parsed by a parser that doesn't care about the trailing
53-
newlines, consider removing the final `\ ` to improve the readability of the
53+
newlines, consider removing the final '\' to improve the readability of the
5454
string.
5555

5656
[text blocks]: https://docs.oracle.com/en/java/javase/23/text-blocks/index.html

0 commit comments

Comments
 (0)