mirror of https://github.com/milvus-io/milvus.git
[skip e2e] Add comment for typeutil.AddOne (#13798)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>pull/13806/head
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