Skip to content

Update Erlang strings to use ~c sigil#31

Open
fhunleth wants to merge 1 commit intoericentin:masterfrom
fhunleth:fix-elixir-1_17-warning
Open

Update Erlang strings to use ~c sigil#31
fhunleth wants to merge 1 commit intoericentin:masterfrom
fhunleth:fix-elixir-1_17-warning

Conversation

@fhunleth
Copy link

This fixes the following warnings in Elixir 1.17:

==> gen_state_machine
Compiling 3 files (.ex)
    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 21 │       {'** State machine ~tp terminating~n' ++ _ = format, args} ->
    │        ~
    │
    └─ lib/gen_state_machine/translator.ex:21:8

    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 24 │       {'** State machine ~p terminating~n' ++ _ = format, args} ->
    │        ~
    │
    └─ lib/gen_state_machine/translator.ex:24:8

This fixes the following warnings in Elixir 1.17:

```
==> gen_state_machine
Compiling 3 files (.ex)
    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 21 │       {'** State machine ~tp terminating~n' ++ _ = format, args} ->
    │        ~
    │
    └─ lib/gen_state_machine/translator.ex:21:8

    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 24 │       {'** State machine ~p terminating~n' ++ _ = format, args} ->
    │        ~
    │
    └─ lib/gen_state_machine/translator.ex:24:8
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant