Skip to content

Commit 8b5069b

Browse files
committed
Document: Update elixir portion of readme to use charlist for host option
1 parent 35fc07b commit 8b5069b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Elixir:
7272

7373
```elixir
7474
{:ok, client} = :amqtt_client.connect(%{
75-
host: "broker.example.com",
75+
host: ~c"broker.example.com",
7676
port: 1883,
7777
client_id: "my_client",
7878
keep_alive_seconds: 60
@@ -102,7 +102,7 @@ Elixir:
102102

103103
```elixir
104104
{:ok, client} = :amqtt_client.connect(%{
105-
host: "broker.example.com",
105+
host: ~c"broker.example.com",
106106
port: 8883,
107107
transport: :ssl,
108108
ssl_opts: [{:verify, :verify_none}],

0 commit comments

Comments
 (0)