Skip to content

Commit

Permalink
fix: information typo
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Aug 26, 2023
1 parent c8ccbb7 commit 634d224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/swaggergen/g_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] != "" {
Expand Down

0 comments on commit 634d224

Please sign in to comment.