浏览代码

Document that closing two times doesn't do anything

Davide D'Agostino 8 年之前
父节点
当前提交
980e2e09a5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ftp.go

+ 1 - 0
ftp.go

@@ -537,6 +537,7 @@ func (r *Response) Read(buf []byte) (int, error) {
 }
 
 // Close implements the io.Closer interface on a FTP data connection.
+// After the first call, Close will do nothing and return nil.
 func (r *Response) Close() error {
 	if r.closed {
 		return nil