@@ -509,16 +509,16 @@ defmodule Mint.HTTP do
509509 either open, or closed (for both reading and writing). In HTTP/2, the connection can be closed only
510510 for writing but not for reading, meaning that you cannot send any more data to the
511511 server but you can still receive data from the server. In this case, `Mint.HTTP.open?(conn, :read)`
512- would return `true` but `Mint.HTTP.open?(conn, :read_write )` would return `false`.
512+ would return `true` but `Mint.HTTP.open?(conn, :write )` would return `false`.
513513 See the "Closed connection" section in the module documentation of `Mint.HTTP2`.
514514
515515 If a connection is *completely closed* (that is, `Mint.HTTP.open?(conn, :read)` returns `false`),
516516 it has become useless and you should get rid of it. If you still need a connection
517517 to the server, start a new connection with `connect/4`.
518518
519- > #### The default value of `type` is `:read_write ` {: .warning}
519+ > #### The default value of `type` is `:write ` {: .warning}
520520 >
521- > With the default value of `type` being `:read_write `, a call to
521+ > With the default value of `type` being `:write `, a call to
522522 > `Mint.HTTP.open?(conn)` will return `false` if `conn` was closed for writing
523523 > but is still open for reading. If you need to make sure the connection is
524524 > completely closed, check that `Mint.HTTP.open?(conn, :read)` returns `false`.
@@ -531,8 +531,8 @@ defmodule Mint.HTTP do
531531
532532 """
533533 @ impl true
534- @ spec open? ( t ( ) , :read | :write | :read_write ) :: boolean ( )
535- def open? ( conn , type \\ :read_write ) , do: conn_module ( conn ) . open? ( conn , type )
534+ @ spec open? ( t ( ) , :read | :write ) :: boolean ( )
535+ def open? ( conn , type \\ :write ) , do: conn_module ( conn ) . open? ( conn , type )
536536
537537 @ doc """
538538 Sends a request to the connected server.
0 commit comments