diff options
author | Sanjay Ghemawat <sanjay@google.com> | 2020-11-30 08:32:50 -0800 |
---|---|---|
committer | Chris Mumford <cmumford@chromium.org> | 2020-11-30 09:11:08 -0800 |
commit | 2802398c94b3b5708f111dae58ac1b738613bbf8 (patch) | |
tree | 8756acd5a6eb057634a7adb765c6f8cd7da1a6de | |
parent | 99ab4730d62444099dbd1ea9c402e15f4aad0728 (diff) | |
download | leveldb-2802398c94b3b5708f111dae58ac1b738613bbf8.tar.gz |
Fix bug in filter policy documentation example.
PiperOrigin-RevId: 344817715
-rw-r--r-- | doc/index.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/index.md b/doc/index.md index 4e7c5ef..01693ad 100644 --- a/doc/index.md +++ b/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); } }; ``` |