From 23382b2b76186d63f419246db1d6f9791c2da86d Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 12 Jun 2023 14:13:14 +0200 Subject: [PATCH] fix doc comment typo (#110) --- fileutil/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileutil/file.go b/fileutil/file.go index ceea46d..c23f83f 100644 --- a/fileutil/file.go +++ b/fileutil/file.go @@ -402,7 +402,7 @@ func MTime(filepath string) (int64, error) { return f.ModTime().Unix(), nil } -// MTime returns file sha value, param `shaType` should be 1, 256 or 512. +// Sha returns file sha value, param `shaType` should be 1, 256 or 512. // Play: https://go.dev/play/p/VfEEcO2MJYf func Sha(filepath string, shaType ...int) (string, error) { file, err := os.Open(filepath)