mirror of
https://github.com/google/leveldb.git
synced 2024-11-27 15:39:03 +08:00
Fix bug in filter policy documentation example.
PiperOrigin-RevId: 344817715
This commit is contained in:
parent
99ab4730d6
commit
2802398c94
@ -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…
Reference in New Issue
Block a user