diff --git a/README.md b/README.md index 0ef7d68..d93e02b 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,19 @@ go get -u github.com/jlaffaye/ftp ## Example ## ```go -c, err := ftp.DialWithOptions("ftp.example.org", DialWithTimeout(5*time.Second)) +c, err := ftp.DialWithOptions("ftp.example.org:21", ftp.DialWithTimeout(5*time.Second)) if err != nil { - t.Fatal(err) + log.Fatal(err) } err = c.Login("anonymous", "anonymous") if err != nil { - t.Fatal(err) + log.Fatal(err) } // Do something with the FTP conn -if err := c.Close(); err != nil { - t.Fatal(err) +if err := c.Quit(); err != nil { + log.Fatal(err) } ```