Improve docstring for Collider impl for Route.

This commit is contained in:
Sergio Benitez 2018-04-03 12:22:08 -07:00
parent 372d85ddb3
commit 58e694d14a
1 changed files with 4 additions and 4 deletions

View File

@ -68,11 +68,11 @@ impl Collider for MediaType {
// This implementation is used at initialization to check if two user routes // This implementation is used at initialization to check if two user routes
// collide before launching. Format collisions works like this: // collide before launching. Format collisions works like this:
// * If route specifies format, it only gets requests for that format. // * If route specifies a format, it only gets requests for that format.
// * If route doesn't specify format, it gets requests for any format. // * If route doesn't specify a format, it gets requests for any format.
// Query collisions work like this: // Query collisions work like this:
// * If route specifies qeury, it only gets request that have queries. // * If routes specify a query, they only gets request that have queries.
// * If route doesn't specify qeury, requests with and without queries match. // * If routes don't specify a query, requests with and without queries match.
// As a result, as long as everything else collides, whether a route has a query // As a result, as long as everything else collides, whether a route has a query
// or not is irrelevant: it will collide. // or not is irrelevant: it will collide.
impl Collider for Route { impl Collider for Route {