Skip to content

Commit 6b98519

Browse files
committed
docs(router): name RouteInfo.Parameters in the Router contract
1 parent 3217e4a commit 6b98519

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎router.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
//
1717
// Contract between Echo/Context instance and the router:
1818
// - all routes should be added through methods on echo.Echo instance.
19-
// Reason: Echo instance uses RouteInfo.Params() length to allocate slice for paths parameters (see `Echo.contextPathParamAllocSize`),
19+
// Reason: Echo instance uses RouteInfo.Parameters length to allocate slice for paths parameters (see `Echo.contextPathParamAllocSize`),
2020
// so Contexts are created with enough capacity.
2121
// - Router.Route must handle a Context whose PathValues capacity is smaller than the maximum path parameter count
2222
// of its routes (for example, when a route was added after the Context was created, or not through echo.Echo).

0 commit comments

Comments
 (0)