summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-02-28 12:56:15 +0800
committerGitHub <noreply@github.com>2017-02-28 12:56:15 +0800
commitc2eef171ff98d0ead2477296b7ae4e05b602da88 (patch)
treeb65b46858b3763dfefc4771e69b84d40b772fec2 /modules
parent4b286f282a38d55b2271c43db80d3ac938746c79 (diff)
downloadgitea-c2eef171ff98d0ead2477296b7ae4e05b602da88.tar.gz
gitea-c2eef171ff98d0ead2477296b7ae4e05b602da88.zip
fix some typos (#1082)
Diffstat (limited to 'modules')
-rw-r--r--modules/base/tool.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index d7d86ea4a7..32987a0b8b 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -529,17 +529,17 @@ func IsTextFile(data []byte) bool {
return strings.Index(http.DetectContentType(data), "text/") != -1
}
-// IsImageFile detectes if data is an image format
+// IsImageFile detects if data is an image format
func IsImageFile(data []byte) bool {
return strings.Index(http.DetectContentType(data), "image/") != -1
}
-// IsPDFFile detectes if data is a pdf format
+// IsPDFFile detects if data is a pdf format
func IsPDFFile(data []byte) bool {
return strings.Index(http.DetectContentType(data), "application/pdf") != -1
}
-// IsVideoFile detectes if data is an video format
+// IsVideoFile detects if data is an video format
func IsVideoFile(data []byte) bool {
return strings.Index(http.DetectContentType(data), "video/") != -1
}