Skip to content

Commit daea3c3

Browse files
character literals are delimited with single quotes (#48998)
Immediately inform the reader that character literals are delimited with single quotes, not double quotes.
1 parent 705bfd3 commit daea3c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/manual/strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ to a numeric value representing a
4848
[Unicode code point](https://en.wikipedia.org/wiki/Code_point). (Julia packages may define
4949
other subtypes of `AbstractChar`, e.g. to optimize operations for other
5050
[text encodings](https://en.wikipedia.org/wiki/Character_encoding).) Here is how `Char` values are
51-
input and shown:
51+
input and shown (note that character literals are delimited with single quotes, not double quotes):
5252

5353
```jldoctest
5454
julia> c = 'x'
@@ -156,7 +156,7 @@ julia> 'A' + 1
156156

157157
## String Basics
158158

159-
String literals are delimited by double quotes or triple double quotes:
159+
String literals are delimited by double quotes or triple double quotes (not single quotes):
160160

161161
```jldoctest helloworldstring
162162
julia> str = "Hello, world.\n"

0 commit comments

Comments
 (0)