fix spelling (#551)

This commit is contained in:
anqiansong
2021-03-08 18:23:12 +08:00
committed by GitHub
parent 7ad86a52f3
commit 60c7edf8f8
13 changed files with 27 additions and 27 deletions

View File

@@ -16,7 +16,7 @@ import (
const templateParentPath = "/"
// GenTemplates wtites the latest template text into file which is not exists
// GenTemplates writes the latest template text into file which is not exists
func GenTemplates(ctx *cli.Context) error {
if err := errorx.Chain(
func() error {
@@ -70,8 +70,8 @@ func CleanTemplates(_ *cli.Context) error {
return nil
}
// UpdateTemplates wtites the latest template text into file,
// it will delete the oldler templates if there are exists
// UpdateTemplates writes the latest template text into file,
// it will delete the older templates if there are exists
func UpdateTemplates(ctx *cli.Context) (err error) {
category := ctx.String("category")
defer func() {