Describe the bug

As I am learning through Redis internals along with reading the source code, I found this

emptyDb() removes an entire single database or all the databases defined.

in the db section in the README. However, I can't find the actual function emptyDb() in the db.c file other than a comment.

I went through the git history and found that emptyDb() has been renamed to emptyData() in https://github.com/redis/redis/commit/3bcf108416bea7ec700aeee2f79e8b31de35c060.

Am I correct to say that emptyDb() in the documentation/source code comments should be renamed to emptyData() everywhere ?

If yes, can I send a small PR to reflect the change ?

Comment From: enjoy-binbin

yes, emptyDb is outupdated, please issue a PR to replace it, we will review it later.

Comment From: enjoy-binbin

fixed in #12646