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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user