1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-08-02 18:55:05 +00: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>,