From 2802398c94b3b5708f111dae58ac1b738613bbf8 Mon Sep 17 00:00:00 2001 From: Sanjay Ghemawat Date: Mon, 30 Nov 2020 08:32:50 -0800 Subject: [PATCH] Fix bug in filter policy documentation example. PiperOrigin-RevId: 344817715 --- doc/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }; ```