mirror of
https://github.com/h2non/filetype.git
synced 2025-12-24 11:52:08 +08:00
Fixed misspells
(see [GoReportCard](https://goreportcard.com/report/github.com/h2non/filetype))
This commit is contained in:
4
match.go
4
match.go
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package types
|
||||
|
||||
// Unkown default type
|
||||
// Unknown default type
|
||||
var Unknown = NewType("unknown", "")
|
||||
|
||||
Reference in New Issue
Block a user