Skip to content

Commit

Permalink
Fix Enum reference in Plug.Conn.chunk/2 docs (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
fertapric authored May 9, 2024
1 parent 9bfa83b commit 30fa3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plug/conn.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 30fa3f0

Please sign in to comment.