summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthias Loibl <mail@matthiasloibl.com>2016-11-07 23:14:50 +0100
committerMatthias Loibl <mail@matthiasloibl.com>2016-11-07 23:31:40 +0100
commit95d4cd9292454dccaa8bd443656a7f21e18dccc5 (patch)
tree5798d1409b405643f22a3552fa8c5b98243c407f /modules
parent2bb188ae79cd6621dad17676a20ef04731f92071 (diff)
downloadgitea-95d4cd9292454dccaa8bd443656a7f21e18dccc5.tar.gz
gitea-95d4cd9292454dccaa8bd443656a7f21e18dccc5.zip
Make long godoc comment 2 lines
Diffstat (limited to 'modules')
-rw-r--r--modules/base/tool.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index 209ff0a9cb..3cc8bbabae 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -43,7 +43,8 @@ func EncodeSha1(str string) string {
return hex.EncodeToString(h.Sum(nil))
}
-// ShortSha is basically just truncating. It is DEPRECATED and will be removed in the future.
+// ShortSha is basically just truncating.
+// It is DEPRECATED and will be removed in the future.
func ShortSha(sha1 string) string {
return TruncateString(sha1, 10)
}