From 0f92ba166360c9a4112d0520521bb7dc19bdcc2d Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Fri, 22 Sep 2023 11:32:50 +0200 Subject: [PATCH] Fix typo in ref docs for pattern comparison Closes gh-31294 --- .../pages/web/webmvc/mvc-controller/ann-requestmapping.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc index 661981354c55..b2a787eb4222 100644 --- a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc +++ b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-requestmapping.adoc @@ -220,7 +220,7 @@ one of the following depending on whether use of parsed `PathPattern` is enabled * {api-spring-framework}/web/util/pattern/PathPattern.html#SPECIFICITY_COMPARATOR[`PathPattern.SPECIFICITY_COMPARATOR`] * {api-spring-framework}/util/AntPathMatcher.html#getPatternComparator-java.lang.String-[`AntPathMatcher.getPatternComparator(String path)`] -Both help to sort patterns with more specific ones on top. A pattern is less specific if +Both help to sort patterns with more specific ones on top. A pattern is more specific if it has a lower count of URI variables (counted as 1), single wildcards (counted as 1), and double wildcards (counted as 2). Given an equal score, the longer pattern is chosen. Given the same score and length, the pattern with more URI variables than wildcards is