1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 08:22:59 +01:00

add doc ref

This commit is contained in:
Nikolay Kim 2017-12-06 16:34:54 -08:00
parent 0dd27bd224
commit a18bd5dac0

View File

@ -37,7 +37,10 @@ impl<S> Router<S> {
self.0.recognize(path).is_some()
}
/// Build named resource path
/// Build named resource path.
///
/// Check [`HttpRequest::url_for()`](../struct.HttpRequest.html#method.url_for)
/// for detailed information.
pub fn resource_path<U, I>(&self, name: &str, elements: U)
-> Result<String, UrlGenerationError>
where U: IntoIterator<Item=I>,