typo: subtract not substract.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell
2017-10-13 09:50:17 +01:00
parent 4b8f87214d
commit d75e0882c4
3 changed files with 13 additions and 13 deletions

View File

@@ -29,9 +29,9 @@ func InStringSlice(ss []string, str string) bool {
return false
}
// SubstractStringSlice substracts string from string slice.
// SubtractStringSlice subtracts string from string slice.
// Comparison is case insensitive.
func SubstractStringSlice(ss []string, str string) []string {
func SubtractStringSlice(ss []string, str string) []string {
var res []string
for _, s := range ss {
if strings.ToLower(s) == strings.ToLower(str) {