mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 14:16:47 +00:00
fix doc test
This commit is contained in:
parent
d664993d56
commit
ec0737e392
1 changed files with 3 additions and 3 deletions
|
@ -283,9 +283,9 @@ impl<S> HttpRequest<S> {
|
||||||
/// Generate url for named resource
|
/// Generate url for named resource
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// //#### # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
/// //#### # use actix_web::{App, HttpRequest, HttpResponse, http};
|
/// # use actix_web::{App, HttpRequest, HttpResponse, http};
|
||||||
/// //#### #
|
/// #
|
||||||
/// fn index(req: HttpRequest) -> HttpResponse {
|
/// fn index(req: HttpRequest) -> HttpResponse {
|
||||||
/// let url = req.url_for("foo", &["1", "2", "3"]); // <- generate url for "foo" resource
|
/// let url = req.url_for("foo", &["1", "2", "3"]); // <- generate url for "foo" resource
|
||||||
/// HttpResponse::Ok().into()
|
/// HttpResponse::Ok().into()
|
||||||
|
|
Loading…
Reference in a new issue