Skip to content

Commit 8c903bc

Browse files
authored
Fix delegation of open?/1 function to use the same function name (#462)
1 parent 0bf602c commit 8c903bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mint/http.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ defmodule Mint.HTTP do
530530
"""
531531
@impl true
532532
@spec open?(t(), :read | :write) :: boolean()
533-
def open?(conn, type \\ :write), do: conn_apply(conn, :open, [conn, type])
533+
def open?(conn, type \\ :write), do: conn_apply(conn, :open?, [conn, type])
534534

535535
@doc """
536536
Sends a request to the connected server.

0 commit comments

Comments
 (0)