浏览代码

Fix bug in filter policy documentation example.

PiperOrigin-RevId: 344817715
main
Sanjay Ghemawat 4 年前
committed by Chris Mumford
父节点
当前提交
2802398c94
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      doc/index.md

+ 1
- 1
doc/index.md 查看文件

@ -438,7 +438,7 @@ class CustomFilterPolicy : public leveldb::FilterPolicy {
for (int i = 0; i < n; i++) {
trimmed[i] = RemoveTrailingSpaces(keys[i]);
}
return builtin_policy_->CreateFilter(&trimmed[i], n, dst);
return builtin_policy_->CreateFilter(trimmed.data(), n, dst);
}
};
```

正在加载...
取消
保存