mirror of
				https://github.com/beego/bee.git
				synced 2025-11-03 23:03:27 +00:00 
			
		
		
		
	fix: information typo
This commit is contained in:
		@@ -558,7 +558,7 @@ func parserComments(f *ast.FuncDecl, controllerName, pkgpath string) error {
 | 
				
			|||||||
				elements := strings.TrimSpace(t[len("@router"):])
 | 
									elements := strings.TrimSpace(t[len("@router"):])
 | 
				
			||||||
				e1 := strings.SplitN(elements, " ", 2)
 | 
									e1 := strings.SplitN(elements, " ", 2)
 | 
				
			||||||
				if len(e1) < 1 {
 | 
									if len(e1) < 1 {
 | 
				
			||||||
					return errors.New("you should has router infomation")
 | 
										return errors.New("you should has router information")
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				routerPath = e1[0]
 | 
									routerPath = e1[0]
 | 
				
			||||||
				if len(e1) == 2 && e1[1] != "" {
 | 
									if len(e1) == 2 && e1[1] != "" {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user