Skip to content

Commit 7d2a02f

Browse files
committed
docs: clarify ConnectionFailure doc
Signed-off-by: Maxime Soulé <[email protected]>
1 parent fad35ec commit 7d2a02f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

transport.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ func methodProbablyWrong(method string) bool {
3939
return !stdMethods[method] && stdMethods[strings.ToUpper(method)]
4040
}
4141

42-
// ConnectionFailure is a responder that returns a connection failure.
43-
// This is the default responder and is called when no other matching
44-
// responder is found. See [RegisterNoResponder] to override this
45-
// default behavior.
42+
// ConnectionFailure is a responder that returns the error
43+
// [NoResponderFound]. This is the default responder and is called
44+
// when no other matching responder is found. See
45+
// [RegisterNoResponder] to override this default behavior.
4646
func ConnectionFailure(*http.Request) (*http.Response, error) {
4747
return nil, NoResponderFound
4848
}

0 commit comments

Comments
 (0)