From 7cd8b0bcf3fc55445321d7e95372fc0de38b2d02 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Sun, 21 Jul 2019 21:44:32 +0200 Subject: [PATCH] Fix spelling errors --- ftp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftp.go b/ftp.go index 2973d9a..376ff5e 100644 --- a/ftp.go +++ b/ftp.go @@ -73,7 +73,7 @@ type Response struct { closed bool } -// Dial connects to the specified address with optinal options +// Dial connects to the specified address with optional options func Dial(addr string, options ...DialOption) (*ServerConn, error) { do := &dialOptions{} for _, option := range options { @@ -172,7 +172,7 @@ func DialWithDisabledEPSV(disabled bool) DialOption { } // DialWithLocation returns a DialOption that configures the ServerConn with specified time.Location -// The lococation is used to parse the dates sent by the server which are in server's timezone +// The location is used to parse the dates sent by the server which are in server's timezone func DialWithLocation(location *time.Location) DialOption { return DialOption{func(do *dialOptions) { do.location = location