Fix spelling errors
This commit is contained in:
parent
1c9975e197
commit
7cd8b0bcf3
4
ftp.go
4
ftp.go
@ -73,7 +73,7 @@ type Response struct {
|
|||||||
closed bool
|
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) {
|
func Dial(addr string, options ...DialOption) (*ServerConn, error) {
|
||||||
do := &dialOptions{}
|
do := &dialOptions{}
|
||||||
for _, option := range options {
|
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
|
// 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 {
|
func DialWithLocation(location *time.Location) DialOption {
|
||||||
return DialOption{func(do *dialOptions) {
|
return DialOption{func(do *dialOptions) {
|
||||||
do.location = location
|
do.location = location
|
||||||
|
Loading…
Reference in New Issue
Block a user