[skip e2e] Add comment for typeutil.AddOne (#13798)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2021-12-20 20:14:58 +08:00 committed by GitHub
parent 83a59d2545
commit 07c1b7e501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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