From c6143edb4425cb59266dea30bc85877a49355aa6 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Wed, 19 Aug 2020 21:30:01 +0800 Subject: osutil: update docstring and tests (#6255) --- internal/osutil/osutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/osutil/osutil.go') diff --git a/internal/osutil/osutil.go b/internal/osutil/osutil.go index 4f871587..b5c82455 100644 --- a/internal/osutil/osutil.go +++ b/internal/osutil/osutil.go @@ -34,7 +34,7 @@ func IsExist(path string) bool { return err == nil || os.IsExist(err) } -// CurrentUsername returns the current system user +// CurrentUsername returns the username of the current user. func CurrentUsername() string { username := os.Getenv("USER") if len(username) > 0 { -- cgit v1.2.3