1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-25 22:32:23 +02:00

Improve comments wording

This commit is contained in:
toimtoimtoim
2022-12-03 19:34:21 +02:00
committed by Martti T
parent 45402bb393
commit 0056cc8ec0

View File

@@ -64,7 +64,7 @@ type (
//
// Goroutine safety: Do not mutate Echo instance fields after server has started. Accessing these
// fields from handlers/middlewares and changing field values at the same time leads to data-races.
// Same rule applies to adding new routes after server has been started - Adding a route is not Goroutine safe action.
// Adding new routes after the server has been started is also not safe!
Echo struct {
filesystem
common
@@ -73,8 +73,8 @@ type (
startupMutex sync.RWMutex
colorer *color.Color
// premiddleware are middlewares that are run before routing is done. In case pre-middleware returns an error router
// will not be called at all and execution ends up in global error handler.
// premiddleware are middlewares that are run before routing is done. In case a pre-middleware returns
// an error the router is not executed and the request will end up in the global error handler.
premiddleware []MiddlewareFunc
middleware []MiddlewareFunc
maxParam *int