Fix incorrect comments

error != success; and 0 != number of bytes written

Closes #1806
This commit is contained in:
zionwu
2014-06-11 08:35:46 +08:00
committed by antirez
parent 6cdd38f947
commit b72422e100
2 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ int rdbLoadObjectType(rio *rdb) {
return type;
}
/* Save a Redis object. Returns -1 on error, 0 on success. */
/* Save a Redis object. Returns -1 on error, number of bytes written on success. */
int rdbSaveObject(rio *rdb, robj *o) {
int n, nwritten = 0;