diff --git a/README.md b/README.md index c0bb6820..70b0ff41 100644 --- a/README.md +++ b/README.md @@ -795,11 +795,11 @@ await app.listen({ port: 8000 }); ``` A route passed is converted to a regular expression using -[path-to-regexp](https://github.com/pillarjs/path-to-regexp), which means -parameters expressed in the pattern will be converted. `path-to-regexp` has -advanced usage which can create complex patterns which can be used for matching. -Check out the -[documentation for that library](https://github.com/pillarjs/path-to-regexp#parameters) +[path-to-regexp](https://github.com/pillarjs/path-to-regexp/tree/6.x), which +means parameters expressed in the pattern will be converted. `path-to-regexp` +has advanced usage which can create complex patterns which can be used for +matching. Check out the +[documentation for that library](https://github.com/pillarjs/path-to-regexp/tree/6.x#parameters) if you have advanced use cases. In most cases, the type of `context.params` is automatically inferred from the