deed2517 by astaxie

Merge pull request #720 from MicroMoon/patch-1

revise the comment of SliceIntersect
2 parents 0836b9e1 22ba252c
...@@ -101,7 +101,7 @@ func SliceDiff(slice1, slice2 []interface{}) (diffslice []interface{}) { ...@@ -101,7 +101,7 @@ func SliceDiff(slice1, slice2 []interface{}) (diffslice []interface{}) {
101 return 101 return
102 } 102 }
103 103
104 // SliceIntersect returns diff slice of slice2 - slice1. 104 // SliceIntersect returns diff slice of slice1 - slice2.
105 func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) { 105 func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) {
106 for _, v := range slice1 { 106 for _, v := range slice1 {
107 if !InSliceIface(v, slice2) { 107 if !InSliceIface(v, slice2) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!