chore: updated routeTreesUpdated comments

This commit is contained in:
pawannn 2025-11-10 00:16:32 +05:30
parent 0771735cd7
commit 12600156ae

3
gin.go
View File

@ -99,8 +99,7 @@ type Engine struct {
RouterGroup
// routeTreesUpdated ensures that the initialization or update of the route trees
// (used for routing HTTP requests) happens only once, even if called multiple times
// concurrently. It helps prevent race conditions and redundant setup operations.
// (used for routing HTTP requests) happens only once, even if called multiple times concurrently.
routeTreesUpdated sync.Once
// RedirectTrailingSlash enables automatic redirection if the current route can't be matched but a