From f8d5c5ff794138e92f59732ba913b7adda06fcac Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 6 Dec 2021 18:06:34 +0300 Subject: [PATCH] interop/storage: fix outdated RemovePrefix comment ffaae0f7736119d9c7a60436c983b2566869c887 changed the behavior long time ago, we're actually stripping whole requested prefix. --- pkg/interop/storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interop/storage/storage.go b/pkg/interop/storage/storage.go index 08392de20..15f5de118 100644 --- a/pkg/interop/storage/storage.go +++ b/pkg/interop/storage/storage.go @@ -25,7 +25,7 @@ const ( None FindFlags = 0 // KeysOnly is used for iterating over keys. KeysOnly FindFlags = 1 << 0 - // RemovePrefix is used for stripping 1-byte prefix from keys. + // RemovePrefix is used for stripping prefix (passed to Find) from keys. RemovePrefix FindFlags = 1 << 1 // ValuesOnly is used for iterating over values. ValuesOnly FindFlags = 1 << 2