mirror of
https://github.com/astaxie/beego.git
synced 2024-11-16 16:00:54 +00:00
Merge pull request #720 from MicroMoon/patch-1
revise the comment of SliceIntersect
This commit is contained in:
commit
deed251794
@ -101,7 +101,7 @@ func SliceDiff(slice1, slice2 []interface{}) (diffslice []interface{}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// SliceIntersect returns diff slice of slice2 - slice1.
|
// SliceIntersect returns diff slice of slice1 - slice2.
|
||||||
func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) {
|
func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) {
|
||||||
for _, v := range slice1 {
|
for _, v := range slice1 {
|
||||||
if !InSliceIface(v, slice2) {
|
if !InSliceIface(v, slice2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user