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:
@@ -359,7 +359,7 @@ func (c *context) ParamValues() []string {
|
|||||||
|
|
||||||
func (c *context) SetParamValues(values ...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
|
// 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)
|
limit := len(values)
|
||||||
if limit > len(c.pvalues) {
|
if limit > len(c.pvalues) {
|
||||||
c.pvalues = make([]string, limit)
|
c.pvalues = make([]string, limit)
|
||||||
|
|||||||
Reference in New Issue
Block a user