Fix some golint warnings

This commit is contained in:
Zachary Yedidia
2017-10-01 12:42:23 -04:00
parent 28acfc6d3f
commit 46ced988eb
6 changed files with 42 additions and 36 deletions

View File

@@ -2,7 +2,7 @@ package highlight
import "regexp"
// DetectFiletype will use the list of syntax definitions provided and the filename and first line of the file
// MatchFiletype will use the list of syntax definitions provided and the filename and first line of the file
// to determine the filetype of the file
// It will return the corresponding syntax definition for the filetype
func MatchFiletype(ftdetect [2]*regexp.Regexp, filename string, firstLine []byte) bool {