aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-11-26 17:21:54 +0100
committerGitHub <noreply@github.com>2022-11-27 00:21:54 +0800
commit4b5a6e5ef0e1bf0a4cff2a9c32f39348a0585c34 (patch)
treed7fad52b82aa0ce95e1949654c621dcb79bf64c6 /modules/base
parent5f38acd9a08958024e8bbf47bcc482c79d844e44 (diff)
downloadgitea-4b5a6e5ef0e1bf0a4cff2a9c32f39348a0585c34.tar.gz
gitea-4b5a6e5ef0e1bf0a4cff2a9c32f39348a0585c34.zip
Fix typos (#21947)
Two typos The `recieve` typo is also present in a translation. https://github.com/go-gitea/gitea/blob/5f38acd9a08958024e8bbf47bcc482c79d844e44/options/locale/locale_sv-SE.ini#L1760 Someone with a Crowdin account should fix that. ... and in a license file but I don't think we can change that because that's the official text. https://github.com/go-gitea/gitea/blob/5f38acd9a08958024e8bbf47bcc482c79d844e44/options/license/xinetd#L21
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/tool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index f1e4a3bf97..df0947ec61 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -43,7 +43,7 @@ func EncodeSha1(str string) string {
return hex.EncodeToString(h.Sum(nil))
}
-// EncodeSha256 string to sha1 hex value.
+// EncodeSha256 string to sha256 hex value.
func EncodeSha256(str string) string {
h := sha256.New()
_, _ = h.Write([]byte(str))