Skip to content

Commit

Permalink
Apply doc changes from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Wes Todd <wes@wesleytodd.com>
  • Loading branch information
jonchurch and wesleytodd committed Jun 18, 2020
1 parent 5839c40 commit 11cd07b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Maps the specified path parameter `name` to a specialized param-capturing middle
This function positions the middleware in the same stack as `.use`.

If a `Promise` is returned from the `param_middleware` function, the router
will attach an `onRejected` callback using `.then`. If the promise is rejected,
`next` will be called with the rejected value, or an error if the value is falsy.
will attach an `onRejected` callback using `.then(null, onRejected)`. If the promise is rejected,
`next` will be called with the rejected value as the error, or `new Error...` if the value is falsy.

Parameter mapping is used to provide pre-conditions to routes
which use normalized placeholders. For example a _:user_id_ parameter
Expand Down

0 comments on commit 11cd07b

Please sign in to comment.