1
0
mirror of https://github.com/labstack/echo.git synced 2025-09-16 09:16:29 +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
parent f1ebc67c56
commit 327828a7c4

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)