fix:修复bug

This commit is contained in:
henry
2022-03-18 13:41:14 +08:00
parent 9f8f2504ff
commit 4735ee5834

View File

@ -32,7 +32,7 @@ func InArray(search, needle interface{}) bool {
}
}
if _length%2 > 0 {
return val.Index(mid+1).Interface() == search
return val.Index(mid).Interface() == search
}
}
return false