From 8c4dcaf40fc76922dd485e21ab74252cb3458968 Mon Sep 17 00:00:00 2001 From: Mat Trudel Date: Thu, 20 Mar 2025 10:48:31 -0400 Subject: [PATCH] Fix format of `already_sent` message in docs --- lib/plug/conn/adapter.ex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/plug/conn/adapter.ex b/lib/plug/conn/adapter.ex index 4333662d..bf7780aa 100644 --- a/lib/plug/conn/adapter.ex +++ b/lib/plug/conn/adapter.ex @@ -50,8 +50,8 @@ defmodule Plug.Conn.Adapter do test implementation returns the actual body so it can be used during testing. - Webservers must send a `{:plug_conn, :already_sent}` - message to the process that called `Plug.Conn.Adapter.conn/5`. + Webservers must send a `{:plug_conn, :sent}` message to the + process that called `Plug.Conn.Adapter.conn/5`. """ @callback send_resp( payload, @@ -73,8 +73,8 @@ defmodule Plug.Conn.Adapter do test implementation returns the actual body so it can be used during testing. - Webservers must send a `{:plug_conn, :already_sent}` - message to the process that called `Plug.Conn.Adapter.conn/5`. + Webservers must send a `{:plug_conn, :sent}` message to the + process that called `Plug.Conn.Adapter.conn/5`. """ @callback send_file( payload, @@ -96,8 +96,8 @@ defmodule Plug.Conn.Adapter do body returned by subsequent calls to the test implementation's `chunk/2` function - Webservers must send a `{:plug_conn, :already_sent}` - message to the process that called `Plug.Conn.Adapter.conn/5`. + Webservers must send a `{:plug_conn, :sent}` message to the + process that called `Plug.Conn.Adapter.conn/5`. """ @callback send_chunked(payload, status :: Conn.status(), headers :: Conn.headers()) :: {:ok, sent_body :: binary | nil, payload}