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

Error hint for single-quoted string #55786

Open
jariji opened this issue Sep 16, 2024 · 0 comments
Open

Error hint for single-quoted string #55786

jariji opened this issue Sep 16, 2024 · 0 comments
Labels
domain:error messages Better, more actionable error messages

Comments

@jariji
Copy link
Contributor

jariji commented Sep 16, 2024

julia> 'asdf'
ERROR: ParseError:
# Error @ REPL[1]:1:2
'asdf'
#└──┘ ── character literal contains multiple characters
Stacktrace:
 [1] top-level scope
   @ none:1

Proposed hint:

[Hint] Perhaps you meant double quotes:

    "asdf"

because "character literal" is too jargony for new users.

@nsajko nsajko added the domain:error messages Better, more actionable error messages label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:error messages Better, more actionable error messages
Projects
None yet
Development

No branches or pull requests

2 participants