瀏覽代碼

Fix bug in filter policy documentation example.

PiperOrigin-RevId: 344817715
master
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…
取消
儲存