Update comment to reflect correct constant.

The constant is `DebugMode`, as defined in [mode.go](1e88466d23/mode.go (L16)).
This commit is contained in:
Mike Stipicevic 2017-10-26 17:00:22 +02:00 committed by GitHub
parent 1e88466d23
commit 77f1db52e9

View File

@ -15,7 +15,7 @@ func init() {
}
// IsDebugging returns true if the framework is running in debug mode.
// Use SetMode(gin.Release) to disable debug mode.
// Use SetMode(gin.ReleaseMode) to disable debug mode.
func IsDebugging() bool {
return ginMode == debugCode
}