diff options
author | dom96 <dominikpicheta@googlemail.com> | 2011-04-23 23:25:22 +0100 |
---|---|---|
committer | dom96 <dominikpicheta@googlemail.com> | 2011-04-23 23:25:22 +0100 |
commit | 491e3256088a2044e96b29601b3e0422d97bd2a2 (patch) | |
tree | e68d2923a3f390ed1effe7f85368f65b9b0bb035 /lib/pure | |
parent | 704e111b63c0959dedc203a91d600be5a77b19e6 (diff) | |
download | Nim-491e3256088a2044e96b29601b3e0422d97bd2a2.tar.gz |
Consistency fix in redis.nim
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/redis.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/redis.nim b/lib/pure/redis.nim index 4af9e6c91..b9f9a00f1 100644 --- a/lib/pure/redis.nim +++ b/lib/pure/redis.nim @@ -10,7 +10,7 @@ ## This module implements a redis client. It allows you to connect to a redis-server instance, send commands and receive replies. ## ## **Beware**: Most (if not all) functions that return a `TRedisString` may -## return `nil`. +## return `redisNil`. import sockets, os, strutils, parseutils @@ -109,7 +109,7 @@ proc parseBulk(r: TRedis, allowMBNil = False): TRedisString = proc parseBulkStr(r: TRedis, allowMBNil = False): TRedisString = result = r.parseBulk(allowMBNil) - if result == RedisNil: result = nil + if result == RedisNil: result = redisNil proc parseMultiBulk(r: TRedis): TRedisList = var line = "" @@ -820,8 +820,8 @@ proc slaveof*(r: TRedis, host: string, port: string) = when isMainModule: var r = open() - echo r.setk("nim:test", "WORKS!!!") - echo r.setk("nim:utf8", "こんにちは") + r.setk("nim:test", "WORKS!!!") + r.setk("nim:utf8", "こんにちは") echo r.incr("nim:int") echo r.incr("nim:int") echo r.get("nim:utf8") |