From 89e64d5ab36eebf831bb114913266de9af3a1389 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 3 Apr 2018 12:22:08 -0700 Subject: [PATCH] Improve docstring for Collider impl for Route. --- lib/src/router/collider.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/router/collider.rs b/lib/src/router/collider.rs index baa8e048..7efa0217 100644 --- a/lib/src/router/collider.rs +++ b/lib/src/router/collider.rs @@ -68,11 +68,11 @@ impl Collider for MediaType { // This implementation is used at initialization to check if two user routes // collide before launching. Format collisions works like this: -// * If route specifies format, it only gets requests for that format. -// * If route doesn't specify format, it gets requests for any format. +// * If route specifies a format, it only gets requests for that format. +// * If route doesn't specify a format, it gets requests for any format. // Query collisions work like this: -// * If route specifies qeury, it only gets request that have queries. -// * If route doesn't specify qeury, requests with and without queries match. +// * If routes specify a query, they only gets request that have queries. +// * 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 // or not is irrelevant: it will collide. impl Collider for Route {