forked from mirror/gin
Update comment to reflect correct constant. (#1144)
The constant is `DebugMode`, as defined in [mode.go](1e88466d23/mode.go (L16)
).
This commit is contained in:
parent
6653d5d588
commit
76ad15ab32
2
debug.go
2
debug.go
|
@ -15,7 +15,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsDebugging returns true if the framework is running in debug mode.
|
// 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 {
|
func IsDebugging() bool {
|
||||||
return ginMode == debugCode
|
return ginMode == debugCode
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue