From 0056cc8ec00f393d68fd742ea8c1a3c3053d80db Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Sat, 3 Dec 2022 19:34:21 +0200 Subject: [PATCH] Improve comments wording --- echo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/echo.go b/echo.go index e3e1c0370..e3e7b2fe0 100644 --- a/echo.go +++ b/echo.go @@ -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