Browse Source

Fix bug in filter policy documentation example.

PiperOrigin-RevId: 344817715
pull/1/head
Sanjay Ghemawat 4 years ago
committed by Chris Mumford
parent
commit
2802398c94
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      doc/index.md

+ 1
- 1
doc/index.md View File

@ -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…
Cancel
Save