From b8e14cb62b4226c77dddc2ecaad81bfaf7c125b9 Mon Sep 17 00:00:00 2001 From: liaolliso2012 Date: Mon, 6 Jan 2014 15:56:42 +0800 Subject: [PATCH] Update README.markdown incrByFloat function in example returns wrong value --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index e3ab9294ac..fb4c122c09 100644 --- a/README.markdown +++ b/README.markdown @@ -780,7 +780,7 @@ $redis->incrByFloat('key1', 1.5); /* key1 didn't exist, so it will now be 1.5 */ $redis->incrByFloat('key1', 1.5); /* 3 */ $redis->incrByFloat('key1', -1.5); /* 1.5 */ -$redis->incrByFloat('key1', 2.5); /* 3.5 */ +$redis->incrByFloat('key1', 2.5); /* 4 */ ~~~ ### decr, decrBy