mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
[skip e2e] Add comment for typeutil.AddOne (#13798)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
parent
83a59d2545
commit
07c1b7e501
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user