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

Fix typo in SetParamValues comment

Change 'brake' to 'break' in Router#Find code comment.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vishal Rana
2025-09-15 21:05:14 -07:00
committed by Martti T.
parent 52d2bff1b9
commit b4ea924836

View File

@@ -359,7 +359,7 @@ func (c *context) ParamValues() []string {
func (c *context) SetParamValues(values ...string) {
// NOTE: Don't just set c.pvalues = values, because it has to have length c.echo.maxParam (or bigger) at all times
// It will brake the Router#Find code
// It will break the Router#Find code
limit := len(values)
if limit > len(c.pvalues) {
c.pvalues = make([]string, limit)