From 07c1b7e501e31fa6d20937afd0797f2aafb3c069 Mon Sep 17 00:00:00 2001 From: shaoyue Date: Mon, 20 Dec 2021 20:14:58 +0800 Subject: [PATCH] [skip e2e] Add comment for typeutil.AddOne (#13798) Signed-off-by: shaoyue.chen --- internal/util/typeutil/string_util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/util/typeutil/string_util.go b/internal/util/typeutil/string_util.go index 41ad9cb871..ffc5c4f8d4 100644 --- a/internal/util/typeutil/string_util.go +++ b/internal/util/typeutil/string_util.go @@ -1,6 +1,7 @@ package typeutil -// Add one to string, add one on empty string return empty +// AddOne add one to last byte in string, on empty string return empty +// it helps with key iteration upper bound func AddOne(data string) string { if len(data) == 0 { return data