Skip to content

Commit

Permalink
fix: description error (gin-gonic#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
jincheng9 authored Dec 15, 2021
1 parent 7d18981 commit fb5f045
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ People and companies, who have contributed, in alphabetical order.
- Fix typo in comment


**@jincheng9 (Jincheng Zhang)**
- ★ support TSR when wildcard follows named param
- Fix errors and typos in comments


**@joiggama (Ignacio Galindo)**
- Add utf-8 charset header on renders

Expand Down
2 changes: 1 addition & 1 deletion gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var defaultTrustedCIDRs = []*net.IPNet{
// HandlerFunc defines the handler used by gin middleware as return value.
type HandlerFunc func(*Context)

// HandlersChain defines a HandlerFunc array.
// HandlersChain defines a HandlerFunc slice.
type HandlersChain []HandlerFunc

// Last returns the last handler in the chain. i.e. the last handler is the main one.
Expand Down
2 changes: 1 addition & 1 deletion mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func EnableJsonDecoderDisallowUnknownFields() {
binding.EnableDecoderDisallowUnknownFields = true
}

// Mode returns currently gin mode.
// Mode returns current gin mode.
func Mode() string {
return modeName
}

0 comments on commit fb5f045

Please sign in to comment.