From 30fa3f0bec3137e57ed90ce8f804b523de3aa417 Mon Sep 17 00:00:00 2001 From: Fernando Tapia Rico Date: Thu, 9 May 2024 16:29:53 +0200 Subject: [PATCH] Fix Enum reference in Plug.Conn.chunk/2 docs (#1219) --- lib/plug/conn.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plug/conn.ex b/lib/plug/conn.ex index 64eda3de..51844ed9 100644 --- a/lib/plug/conn.ex +++ b/lib/plug/conn.ex @@ -533,7 +533,7 @@ defmodule Plug.Conn do `send_chunked/2`. It returns `{:ok, conn}` in case of success, otherwise `{:error, reason}`. - To stream data use `Enum.reduce_while/3` instead of `Enum.into/2`. + To stream data use `Enum.reduce_while/3` instead of `Enum.reduce/2`. `Enum.reduce_while/3` allows aborting the execution if `chunk/2` fails to deliver the chunk of data.