Skip to content

Commit a0b5cc8

Browse files
authored
Use ~c to represent charlist arg for connect/3 (#13837)
Suppresses compiler warning about single quoted strings. ``` warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead ```
1 parent f6856cf commit a0b5cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/mix-and-otp/docs-tests-and-with.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ defmodule KVServerTest do
371371

372372
setup do
373373
opts = [:binary, packet: :line, active: false]
374-
{:ok, socket} = :gen_tcp.connect('localhost', 4040, opts)
374+
{:ok, socket} = :gen_tcp.connect(~c"localhost", 4040, opts)
375375
%{socket: socket}
376376
end
377377

0 commit comments

Comments
 (0)