From 8d779caa22c63b15a6c3ceb75d8f6d4971b2eb67 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Sun, 19 Jul 2020 09:49:05 -0700 Subject: [PATCH] Note lower ranks are higher precedence in 'Route'. Fixes #1360. --- core/lib/src/router/route.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/lib/src/router/route.rs b/core/lib/src/router/route.rs index dd431067..05c6bb86 100644 --- a/core/lib/src/router/route.rs +++ b/core/lib/src/router/route.rs @@ -87,11 +87,11 @@ impl Route { /// # Ranking /// /// The route's rank is set so that routes with static paths (no dynamic - /// parameters) are ranked higher than routes with dynamic paths, routes - /// with query strings with static segments are ranked higher than routes - /// with fully dynamic queries, and routes with queries are ranked higher - /// than routes without queries. This default ranking is summarized by the - /// table below: + /// parameters) have lower ranks (higher precedence) than routes with + /// dynamic paths, routes with query strings with static segments have lower + /// ranks than routes with fully dynamic queries, and routes with queries + /// have lower ranks than routes without queries. This default ranking is + /// summarized by the table below: /// /// | static path | query | rank | /// |-------------|---------------|------|