Skip to content

Commit b8d2393

Browse files
Mint.HTTP.stream/2 returns :unknown, not :unknown_message, on error (#487)
Sponsored-by: https://beaverlabs.net
1 parent ef8f3a1 commit b8d2393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mint/http.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ defmodule Mint.HTTP do
152152
153153
This guard is useful in `receive` loops or in callbacks that handle generic messages (such as a
154154
`c:GenServer.handle_info/2` callback) so that you don't have to hand the `message` to
155-
`Mint.HTTP.stream/2` and check for the `:unknown_message` return value.
155+
`Mint.HTTP.stream/2` and check for the `:unknown` return value.
156156
157157
This macro can be used in guards.
158158

0 commit comments

Comments
 (0)