1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +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>,