fix: typo (#2958)
This commit is contained in:
		
							
								
								
									
										2
									
								
								gin.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gin.go
									
									
									
									
									
								
							@ -271,7 +271,7 @@ func (engine *Engine) NoMethod(handlers ...HandlerFunc) {
 | 
			
		||||
	engine.rebuild405Handlers()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Use attaches a global middleware to the router. ie. the middleware attached though Use() will be
 | 
			
		||||
// Use attaches a global middleware to the router. ie. the middleware attached through Use() will be
 | 
			
		||||
// included in the handlers chain for every single request. Even 404, 405, static files...
 | 
			
		||||
// For example, this is the right place for a logger or error management middleware.
 | 
			
		||||
func (engine *Engine) Use(middleware ...HandlerFunc) IRoutes {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user