Fixed misspells

(see [GoReportCard](https://goreportcard.com/report/github.com/h2non/filetype))
This commit is contained in:
Ma_124
2018-10-20 10:56:06 +02:00
parent 6f0781f86f
commit 286ca9c9fd
2 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ func Matches(buf []byte) bool {
return kind != types.Unknown
}
// MatchMap performs a file matching againts a map of match functions
// MatchMap performs a file matching against a map of match functions
func MatchMap(buf []byte, matchers matchers.Map) types.Type {
for kind, matcher := range matchers {
if matcher(buf) {
@@ -80,7 +80,7 @@ func MatchMap(buf []byte, matchers matchers.Map) types.Type {
return types.Unknown
}
// MatchesMap is an alias to Matches() but using matching againts a map of match functions
// MatchesMap is an alias to Matches() but using matching against a map of match functions
func MatchesMap(buf []byte, matchers matchers.Map) bool {
return MatchMap(buf, matchers) != types.Unknown
}

View File

@@ -1,4 +1,4 @@
package types
// Unkown default type
// Unknown default type
var Unknown = NewType("unknown", "")