Fix typo in comment (#318)

Signed-off-by: Vitah Lin <vitahlin@gmail.com>
This commit is contained in:
Vitah Lin 2024-04-15 19:45:00 +08:00 committed by GitHub
parent fc5bf6a0ef
commit 1221b3951a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ size_t getStringObjectSdsUsedMemory(robj *o) {
} }
/* Return the length of a string object. /* Return the length of a string object.
* This does NOT includes internal fragmentation or sds unused space. */ * This does NOT include internal fragmentation or sds unused space. */
size_t getStringObjectLen(robj *o) { size_t getStringObjectLen(robj *o) {
serverAssertWithInfo(NULL,o,o->type == OBJ_STRING); serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);
switch(o->encoding) { switch(o->encoding) {
@ -98,8 +98,7 @@ void linkClient(client *c) {
raxInsert(server.clients_index,(unsigned char*)&id,sizeof(id),c,NULL); raxInsert(server.clients_index,(unsigned char*)&id,sizeof(id),c,NULL);
} }
/* Initialize client authentication state. /* Initialize client authentication state. */
*/
static void clientSetDefaultAuth(client *c) { static void clientSetDefaultAuth(client *c) {
/* If the default user does not require authentication, the user is /* If the default user does not require authentication, the user is
* directly authenticated. */ * directly authenticated. */