diff --git a/smalltrip.go b/smalltrip.go index 311d286..2dd0263 100644 --- a/smalltrip.go +++ b/smalltrip.go @@ -97,7 +97,7 @@ func (r *router) ServeHTTP(w http.ResponseWriter, req *http.Request) { func (r *router) Routes() []Route { r.assert.NotNil(r.routes) - rs := make([]Route, len(r.routes), len(r.routes)) + rs := make([]Route, len(r.routes)) var i int for _, v := range r.routes {