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
///
/// 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 |
/// |-------------|---------------|------|