Skip to content
Myr

Update comment to reflect correct constant. (#1144)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The constant is `DebugMode`, as defined in [mode.go](https://github.com/gin-gonic/gin/blob/1e88466d234a82ce4aeca904bce8a0b93fac3d42/mode.go#L16).

authored by Mike Stipicevic · committed by Bo-Yi Wu · parent 6653d5d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:debug.go+1 added-1 removed
13 unmodified lines
14 log.SetFlags(0)15}1617// IsDebugging returns true if the framework is running in debug mode.18// Use SetMode(gin.Release) to disable debug mode.18// Use SetMode(gin.ReleaseMode) to disable debug mode.19func IsDebugging() bool {20 return ginMode == debugCode21}22
55 unmodified lines