Note lower ranks are higher precedence in 'Route'.

Fixes #1360.
This commit is contained in:
Jeb Rosen 2020-07-19 09:49:05 -07:00 committed by Sergio Benitez
parent 8224a1592f
commit 8d779caa22
1 changed files with 5 additions and 5 deletions

View File

@ -87,11 +87,11 @@ impl Route {
/// # Ranking /// # Ranking
/// ///
/// The route's rank is set so that routes with static paths (no dynamic /// The route's rank is set so that routes with static paths (no dynamic
/// parameters) are ranked higher than routes with dynamic paths, routes /// parameters) have lower ranks (higher precedence) than routes with
/// with query strings with static segments are ranked higher than routes /// dynamic paths, routes with query strings with static segments have lower
/// with fully dynamic queries, and routes with queries are ranked higher /// ranks than routes with fully dynamic queries, and routes with queries
/// than routes without queries. This default ranking is summarized by the /// have lower ranks than routes without queries. This default ranking is
/// table below: /// summarized by the table below:
/// ///
/// | static path | query | rank | /// | static path | query | rank |
/// |-------------|---------------|------| /// |-------------|---------------|------|