Fix syntax errors in comments

Signed-off-by: sky li (李少凯)-浪潮数据 <lishaokai1995@126.com>
This commit is contained in:
sky li (李少凯)-浪潮数据 2022-07-08 09:48:13 +08:00
parent 186c895da8
commit c4e89b4186

View File

@ -46,7 +46,7 @@ func IsDirWriteable(dir string) error {
// does not exists. TouchDirAll also ensures the given directory is writable.
func TouchDirAll(lg *zap.Logger, dir string) error {
// If path is already a directory, MkdirAll does nothing and returns nil, so,
// first check if dir exist with an expected permission mode.
// first check if dir exists with an expected permission mode.
if Exist(dir) {
err := CheckDirPermission(dir, PrivateDirMode)
if err != nil {