summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiao Tonglang <liaotonglang@gmail.com>2019-10-22 18:46:43 +0800
committerGitHub <noreply@github.com>2019-10-22 18:46:43 +0800
commitf2dae4e74ad3fb5f19722e4df29deddb85ff0872 (patch)
treeaeed605488075c256173448a6124016b4912658d
parent370d532a00581ca79c87af7d7811e56de0ca52a8 (diff)
downloadleveldb-f2dae4e74ad3fb5f19722e4df29deddb85ff0872.tar.gz
fix typo in comment of LRUHandle
LRUHandle has no member "next_", fix it to "next" instead.
-rw-r--r--util/cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cache.cc b/util/cache.cc
index 12de306..a9b3e6c 100644
--- a/util/cache.cc
+++ b/util/cache.cc
@@ -53,7 +53,7 @@ struct LRUHandle {
char key_data[1]; // Beginning of key
Slice key() const {
- // next_ is only equal to this if the LRU handle is the list head of an
+ // next is only equal to this if the LRU handle is the list head of an
// empty list. List heads never have meaningful keys.
assert(next != this);