fix:修复bug
This commit is contained in:
@ -32,7 +32,7 @@ func InArray(search, needle interface{}) bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if _length%2 > 0 {
|
if _length%2 > 0 {
|
||||||
return val.Index(mid+1).Interface() == search
|
return val.Index(mid).Interface() == search
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user