=doc fix inaccurate docs #20632 (#20652)

* Replace Rest with Remaining and RestPath with RemainingPath
* changed files: path-directives.rst and path-matchers.rst
This commit is contained in:
gosubpl 2016-05-29 20:55:35 +02:00 committed by Konrad Malawski
parent e2c6948c15
commit 66d4f82685
2 changed files with 5 additions and 5 deletions

View file

@ -56,9 +56,9 @@ Predefined path matchers allow extraction of various types of values:
Matches if the unmatched path starts with a path segment (i.e. not a slash). Matches if the unmatched path starts with a path segment (i.e. not a slash).
If so the path segment is extracted as a ``String`` instance. If so the path segment is extracted as a ``String`` instance.
``PathMatchers.Rest`` ``PathMatchers.Remaining``
Matches and extracts the complete remaining unmatched part of the request's URI path as an (encoded!) String. Matches and extracts the complete remaining unmatched part of the request's URI path as an (encoded!) String.
If you need access to the remaining *decoded* elements of the path use ``RestPath`` instead. If you need access to the remaining *decoded* elements of the path use ``RemainingPath`` instead.
``PathMatchers.intValue`` ``PathMatchers.intValue``
Efficiently matches a number of decimal digits (unsigned) and extracts their (non-negative) ``Int`` value. The matcher Efficiently matches a number of decimal digits (unsigned) and extracts their (non-negative) ``Int`` value. The matcher

View file

@ -69,11 +69,11 @@ Segment: PathMatcher1[String]
PathEnd: PathMatcher0 PathEnd: PathMatcher0
Matches the very end of the path, similar to ``$`` in regular expressions and extracts nothing. Matches the very end of the path, similar to ``$`` in regular expressions and extracts nothing.
Rest: PathMatcher1[String] Remaining: PathMatcher1[String]
Matches and extracts the complete remaining unmatched part of the request's URI path as an (encoded!) String. Matches and extracts the complete remaining unmatched part of the request's URI path as an (encoded!) String.
If you need access to the remaining *decoded* elements of the path use ``RestPath`` instead. If you need access to the remaining *decoded* elements of the path use ``RemainingPath`` instead.
RestPath: PathMatcher1[Path] RemainingPath: PathMatcher1[Path]
Matches and extracts the complete remaining, unmatched part of the request's URI path. Matches and extracts the complete remaining, unmatched part of the request's URI path.
IntNumber: PathMatcher1[Int] IntNumber: PathMatcher1[Int]