Skip to content

Commit

Permalink
docs(engine): fix comments for the With (#3955)
Browse files Browse the repository at this point in the history
Signed-off-by: Flc゛ <four_leaf_clover@foxmail.com>
  • Loading branch information
flc1125 committed May 7, 2024
1 parent 490accf commit e60113d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gin.go
Expand Up @@ -316,7 +316,7 @@ func (engine *Engine) Use(middleware ...HandlerFunc) IRoutes {
return engine
}

// With returns a new Engine instance with the provided options.
// With returns a Engine with the configuration set in the OptionFunc.
func (engine *Engine) With(opts ...OptionFunc) *Engine {
for _, opt := range opts {
opt(engine)
Expand Down

0 comments on commit e60113d

Please sign in to comment.