Browse Source

client: simplify CancelableTransport doc

Brian Waldon 11 years ago
parent
commit
1773d0a18b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      client/client.go

+ 2 - 3
client/client.go

@@ -64,9 +64,8 @@ type Config struct {
 	Transport CancelableTransport
 }
 
-// CancelableTransport mimics http.Transport to provide an interface which can be
-// substituted for testing (since the RoundTripper interface alone does not
-// require the CancelRequest method)
+// CancelableTransport mimics net/http.Transport, but requires that
+// the object also support request cancellation.
 type CancelableTransport interface {
 	http.RoundTripper
 	CancelRequest(req *http.Request)