1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

update doc string

This commit is contained in:
Nikolay Kim 2018-04-17 07:51:06 -07:00
parent 5f3a7a6a52
commit 3a79505a44

View File

@ -438,9 +438,9 @@ impl<S> HttpRequest<S> {
/// Get a reference to the Params object. /// Get a reference to the Params object.
/// ///
/// Params is a container for url parameters. /// Params is a container for url parameters.
/// Route supports glob patterns: * for a single wildcard segment and :param /// A variable segment is specified in the form `{identifier}`,
/// for matching storing that segment of the request url in the Params /// where the identifier can be used later in a request handler to
/// object. /// access the matched value for that segment.
#[inline] #[inline]
pub fn match_info(&self) -> &Params { pub fn match_info(&self) -> &Params {
unsafe { mem::transmute(&self.as_ref().params) } unsafe { mem::transmute(&self.as_ref().params) }