Skip to content

Use ~c to represent charlist arg for :gen_tcp.connect/3 #13837

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

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

bigbluejay9
Copy link
Contributor

Suppresses compiler warning about single quoted strings.

Before:

    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 12 │     {:ok, socket} = :gen_tcp.connect('localhost', 4040, opts)
    │                                      ~
    │
    └─ test/kv_server_test.exs:12:38

After:
no warning emitted.

Suppresses compiler warning about single quoted strings.

```
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
```
@josevalim josevalim merged commit a0b5cc8 into elixir-lang:main Sep 18, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants