瀏覽代碼

Fix bug in filter policy documentation example.

PiperOrigin-RevId: 344817715
xry
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);
}
};
```

Loading…
取消
儲存