From 980e2e09a582c080954c2c5a44627099fe3eea53 Mon Sep 17 00:00:00 2001 From: Davide D'Agostino Date: Thu, 4 May 2017 19:03:56 -0700 Subject: [PATCH] Document that closing two times doesn't do anything --- ftp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ftp.go b/ftp.go index 17fe35a..c29cb38 100644 --- a/ftp.go +++ b/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