Update gin.go

This commit is contained in:
ishanray 2019-10-27 17:40:47 -04:00 committed by GitHub
parent 393a63f3b0
commit 70de052eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
gin.go
View File

@ -30,7 +30,7 @@ type HandlerFunc func(*Context)
// HandlersChain defines a HandlerFunc array.
type HandlersChain []HandlerFunc
// Last returns the last handler in the chain. ie. the last handler is the main own.
// Last returns the last handler in the chain. ie. the last handler is the main one.
func (c HandlersChain) Last() HandlerFunc {
if length := len(c); length > 0 {
return c[length-1]