浏览代码

client: simplify CancelableTransport doc

Brian Waldon 11 年之前
父节点
当前提交
1773d0a18b
共有 1 个文件被更改,包括 2 次插入3 次删除
  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)