Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

character literals are delimited with single quotes #48998

Merged
merged 1 commit into from
May 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/src/manual/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ to a numeric value representing a
[Unicode code point](https://en.wikipedia.org/wiki/Code_point). (Julia packages may define
other subtypes of `AbstractChar`, e.g. to optimize operations for other
[text encodings](https://en.wikipedia.org/wiki/Character_encoding).) Here is how `Char` values are
input and shown:
input and shown (note that character literals are delimited with single quotes, not double quotes):

```jldoctest
julia> c = 'x'
Expand Down Expand Up @@ -156,7 +156,7 @@ julia> 'A' + 1

## String Basics

String literals are delimited by double quotes or triple double quotes:
String literals are delimited by double quotes or triple double quotes (not single quotes):

```jldoctest helloworldstring
julia> str = "Hello, world.\n"
Expand Down