Browse Source

fix typo parse.go error message (#1041)

Jerry Liang 3 years ago
parent
commit
5c6a3132eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/goctl/api/parser/parser.go

+ 1 - 1
tools/goctl/api/parser/parser.go

@@ -276,7 +276,7 @@ func (p parser) fillService() error {
 
 
 			name := item.ServiceApi.Name.Text()
 			name := item.ServiceApi.Name.Text()
 			if len(p.spec.Service.Name) > 0 && p.spec.Service.Name != name {
 			if len(p.spec.Service.Name) > 0 && p.spec.Service.Name != name {
-				return fmt.Errorf("mulit service name defined %s and %s", name, p.spec.Service.Name)
+				return fmt.Errorf("multiple service names defined %s and %s", name, p.spec.Service.Name)
 			}
 			}
 			p.spec.Service.Name = name
 			p.spec.Service.Name = name
 		}
 		}