Skip to content

Commit 0056cc8

Browse files
committed
Improve comments wording
1 parent 45402bb commit 0056cc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

echo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type (
6464
//
6565
// Goroutine safety: Do not mutate Echo instance fields after server has started. Accessing these
6666
// fields from handlers/middlewares and changing field values at the same time leads to data-races.
67-
// Same rule applies to adding new routes after server has been started - Adding a route is not Goroutine safe action.
67+
// Adding new routes after the server has been started is also not safe!
6868
Echo struct {
6969
filesystem
7070
common
@@ -73,8 +73,8 @@ type (
7373
startupMutex sync.RWMutex
7474
colorer *color.Color
7575

76-
// premiddleware are middlewares that are run before routing is done. In case pre-middleware returns an error router
77-
// will not be called at all and execution ends up in global error handler.
76+
// premiddleware are middlewares that are run before routing is done. In case a pre-middleware returns
77+
// an error the router is not executed and the request will end up in the global error handler.
7878
premiddleware []MiddlewareFunc
7979
middleware []MiddlewareFunc
8080
maxParam *int

0 commit comments

Comments
 (0)