From 331f882d34a6eb65fec8763c568c7bdfa5388daa Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sun, 29 Sep 2013 11:18:47 +0300 Subject: [PATCH] Rename examples. --- v2/example_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/example_test.go b/v2/example_test.go index cb180803..b78448b4 100644 --- a/v2/example_test.go +++ b/v2/example_test.go @@ -7,7 +7,7 @@ import ( "github.com/vmihailenco/redis/v2" ) -func ExampleTCPClient() { +func ExampleNewTCPClient() { client := redis.NewTCPClient(&redis.Options{ Addr: "localhost:6379", Password: "", // no password set @@ -20,7 +20,7 @@ func ExampleTCPClient() { // Output: PONG } -func ExampleUnixClient() { +func ExampleNewUnixClient() { client := redis.NewUnixClient(&redis.Options{ Addr: "/tmp/redis.sock", }) @@ -31,7 +31,7 @@ func ExampleUnixClient() { // Output: PONG } -func ExampleSetGet() { +func ExampleSet() { client := redis.NewTCPClient(&redis.Options{ Addr: ":6379", }) @@ -85,7 +85,7 @@ func incr(tx *redis.Multi) ([]redis.Cmder, error) { return cmds, err } -func ExampleTransaction() { +func ExampleMulti() { client := redis.NewTCPClient(&redis.Options{ Addr: ":6379", })