From 91abf7236c126914b6a5d9d62f76180bd7026e1e Mon Sep 17 00:00:00 2001 From: guangwu Date: Sat, 26 Aug 2023 16:34:04 +0800 Subject: [PATCH] fix: information typo --- generate/swaggergen/g_docs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate/swaggergen/g_docs.go b/generate/swaggergen/g_docs.go index 23f16ac..2872be2 100644 --- a/generate/swaggergen/g_docs.go +++ b/generate/swaggergen/g_docs.go @@ -558,7 +558,7 @@ func parserComments(f *ast.FuncDecl, controllerName, pkgpath string) error { elements := strings.TrimSpace(t[len("@router"):]) e1 := strings.SplitN(elements, " ", 2) if len(e1) < 1 { - return errors.New("you should has router infomation") + return errors.New("you should has router information") } routerPath = e1[0] if len(e1) == 2 && e1[1] != "" {