Skip to content

Commit 6068b7f

Browse files
authored
Fix format of already_sent message in docs (#1265)
1 parent 1947edc commit 6068b7f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/plug/conn/adapter.ex

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ defmodule Plug.Conn.Adapter do
5050
test implementation returns the actual body so it can
5151
be used during testing.
5252
53-
Webservers must send a `{:plug_conn, :already_sent}`
54-
message to the process that called `Plug.Conn.Adapter.conn/5`.
53+
Webservers must send a `{:plug_conn, :sent}` message to the
54+
process that called `Plug.Conn.Adapter.conn/5`.
5555
"""
5656
@callback send_resp(
5757
payload,
@@ -73,8 +73,8 @@ defmodule Plug.Conn.Adapter do
7373
test implementation returns the actual body so it can
7474
be used during testing.
7575
76-
Webservers must send a `{:plug_conn, :already_sent}`
77-
message to the process that called `Plug.Conn.Adapter.conn/5`.
76+
Webservers must send a `{:plug_conn, :sent}` message to the
77+
process that called `Plug.Conn.Adapter.conn/5`.
7878
"""
7979
@callback send_file(
8080
payload,
@@ -96,8 +96,8 @@ defmodule Plug.Conn.Adapter do
9696
body returned by subsequent calls to the test implementation's
9797
`chunk/2` function
9898
99-
Webservers must send a `{:plug_conn, :already_sent}`
100-
message to the process that called `Plug.Conn.Adapter.conn/5`.
99+
Webservers must send a `{:plug_conn, :sent}` message to the
100+
process that called `Plug.Conn.Adapter.conn/5`.
101101
"""
102102
@callback send_chunked(payload, status :: Conn.status(), headers :: Conn.headers()) ::
103103
{:ok, sent_body :: binary | nil, payload}

0 commit comments

Comments
 (0)