mirror of https://github.com/rwf2/Rocket.git
Improve docstring for Collider impl for Route.
This commit is contained in:
parent
3e72b87012
commit
89e64d5ab3
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue