chore: fix comment

Signed-off-by: jinjiadu <jinjiadu@aliyun.com>
This commit is contained in:
jinjiadu 2024-08-31 14:34:33 +08:00
parent 3a835c00e3
commit 42e3a4591f

View File

@ -179,7 +179,7 @@ func CreateFileAndWriteContent(path string, content string) error {
return nil return nil
} }
// IsNotExistMkDir create a directory if it does not exist // IsNotExistCreateFile create a file if it does not exist
func IsNotExistCreateFile(src string) error { func IsNotExistCreateFile(src string) error {
if notExist := CheckNotExist(src); notExist { if notExist := CheckNotExist(src); notExist {
if err := CreateFile(src); err != nil { if err := CreateFile(src); err != nil {