Skip to content

Commit f6f666b

Browse files
authored
Merge pull request ukko#49 from runmanz/master
zAdd demo error
2 parents f454938 + bfe3edf commit f6f666b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Redis.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,7 +2284,7 @@ public function brpoplpush( $srcKey, $dstKey, $timeout ) {}
22842284
* @example
22852285
* <pre>
22862286
* <pre>
2287-
* $redis->zAdd('z', 1, 'v2', 2, 'v2', 3, 'v3', 4, 'v4' ); // int(2)
2287+
* $redis->zAdd('z', 1, 'v1', 2, 'v2', 3, 'v3', 4, 'v4' ); // int(2)
22882288
* $redis->zRem('z', 'v2', 'v3'); // int(2)
22892289
* var_dump( $redis->zRange('z', 0, -1) );
22902290
* //// Output:
@@ -2334,7 +2334,7 @@ public function zRange( $key, $start, $end, $withscores = null ) {}
23342334
* @link https://redis.io/commands/zrem
23352335
* @example
23362336
* <pre>
2337-
* $redis->zAdd('z', 1, 'v2', 2, 'v2', 3, 'v3', 4, 'v4' ); // int(2)
2337+
* $redis->zAdd('z', 1, 'v1', 2, 'v2', 3, 'v3', 4, 'v4' ); // int(2)
23382338
* $redis->zRem('z', 'v2', 'v3'); // int(2)
23392339
* var_dump( $redis->zRange('z', 0, -1) );
23402340
* //// Output:

0 commit comments

Comments
 (0)