From d2e8ee8bf8bb0119cdf3eb944c389eadc409da72 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 11 Aug 2012 17:47:33 +0300 Subject: [PATCH] readme: Fix example. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 197442eb..9e1879ae 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,12 @@ Example 2: import "github.com/vmihailenco/redis" - openConn := func() (io.ReadWriter, error) { + openConn := func() (io.ReadWriteCloser, error) { fmt.Println("Connecting...") return net.Dial("tcp", ":6379") } - closeConn := func(conn io.ReadWriter) error { + closeConn := func(conn io.ReadWriteCloser) error { fmt.Println("Disconnecting...") conn.Close() return nil