Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Jul 20, 2019
1 parent 7edfbde commit 59b5896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slice/contains.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func ContainsString(sl []string, v string) bool {

func ContainsSlice(smallSlice, bigSlice []string) bool {
for i := 0; i < len(smallSlice); i++ {
if !ContainsString(smallSlice[i], bigSlice) {
if !ContainsString(bigSlice, smallSlice[i]) {
return false
}
}
Expand Down

0 comments on commit 59b5896

Please sign in to comment.