From 75b9ebed79478c8ea1173e020bc0fe7cad51a838 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Mon, 15 Apr 2019 18:34:29 +0200 Subject: [PATCH] Fix errors in example code --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) } ```