[skip e2e] Add comment for ConvertRangeToIntRange (#13898)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/13921/head
shaoyue 2021-12-21 21:04:25 +08:00 committed by GitHub
parent 9a7428243f
commit 9672c4d7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ func (gp *BaseTable) ParseIntWithDefault(key string, defaultValue int) int {
// package methods // package methods
// ConvertRangeToIntRange converts a range of strings to a range of ints.
func ConvertRangeToIntRange(rangeStr, sep string) []int { func ConvertRangeToIntRange(rangeStr, sep string) []int {
items := strings.Split(rangeStr, sep) items := strings.Split(rangeStr, sep)
if len(items) != 2 { if len(items) != 2 {