mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-13 13:12:17 +08:00
chore: updated routeTreesUpdated comments
This commit is contained in:
parent
0771735cd7
commit
12600156ae
3
gin.go
3
gin.go
@ -99,8 +99,7 @@ type Engine struct {
|
|||||||
RouterGroup
|
RouterGroup
|
||||||
|
|
||||||
// routeTreesUpdated ensures that the initialization or update of the route trees
|
// routeTreesUpdated ensures that the initialization or update of the route trees
|
||||||
// (used for routing HTTP requests) happens only once, even if called multiple times
|
// (used for routing HTTP requests) happens only once, even if called multiple times concurrently.
|
||||||
// concurrently. It helps prevent race conditions and redundant setup operations.
|
|
||||||
routeTreesUpdated sync.Once
|
routeTreesUpdated sync.Once
|
||||||
|
|
||||||
// RedirectTrailingSlash enables automatic redirection if the current route can't be matched but a
|
// RedirectTrailingSlash enables automatic redirection if the current route can't be matched but a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user