From 344b6896bf3fa845f5a433e3cbe45781334a43a6 Mon Sep 17 00:00:00 2001 From: Lupo Montero Date: Thu, 26 May 2011 05:50:25 +0100 Subject: [PATCH] Changed the order of callback arguments in README file as they seemed to be the other way around --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1a7125b..5f9e0bb 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The Client object emits 4 important events - connect, close, timeout and error. After connecting, you can start to make requests. - client.get('key', function(result, error){ + client.get('key', function(error, result){ // all of the callbacks have two arguments. // 'result' may contain things which aren't great, but @@ -55,19 +55,19 @@ After connecting, you can start to make requests. }); - client.set('key', 'value', function(result, error){ + client.set('key', 'value', function(error, result){ // lifetime is optional. the default is // to never expire (0) }, lifetime); - client.delete('key', function(result, error){ + client.delete('key', function(error, result){ // delete a key from cache. }); - client.version(function(result, error)){ + client.version(function(error, result)){ // grab the server version });