fix: description error (#2986)

This commit is contained in:
jincheng9 2021-12-15 23:27:23 +08:00 committed by GitHub
parent 7d189814cb
commit fb5f045417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -109,6 +109,11 @@ People and companies, who have contributed, in alphabetical order.
- Fix typo in comment - Fix typo in comment
**@jincheng9 (Jincheng Zhang)**
- ★ support TSR when wildcard follows named param
- Fix errors and typos in comments
**@joiggama (Ignacio Galindo)** **@joiggama (Ignacio Galindo)**
- Add utf-8 charset header on renders - Add utf-8 charset header on renders

2
gin.go
View File

@ -41,7 +41,7 @@ var defaultTrustedCIDRs = []*net.IPNet{
// HandlerFunc defines the handler used by gin middleware as return value. // HandlerFunc defines the handler used by gin middleware as return value.
type HandlerFunc func(*Context) type HandlerFunc func(*Context)
// HandlersChain defines a HandlerFunc array. // HandlersChain defines a HandlerFunc slice.
type HandlersChain []HandlerFunc type HandlersChain []HandlerFunc
// Last returns the last handler in the chain. i.e. the last handler is the main one. // Last returns the last handler in the chain. i.e. the last handler is the main one.

View File

@ -88,7 +88,7 @@ func EnableJsonDecoderDisallowUnknownFields() {
binding.EnableDecoderDisallowUnknownFields = true binding.EnableDecoderDisallowUnknownFields = true
} }
// Mode returns currently gin mode. // Mode returns current gin mode.
func Mode() string { func Mode() string {
return modeName return modeName
} }