mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
fix doc test
This commit is contained in:
parent
3c472a2f66
commit
7ab23d082d
@ -283,9 +283,9 @@ impl<S> HttpRequest<S> {
|
||||
/// Generate url for named resource
|
||||
///
|
||||
/// ```rust
|
||||
/// //#### # extern crate actix_web;
|
||||
/// //#### # use actix_web::{App, HttpRequest, HttpResponse, http};
|
||||
/// //#### #
|
||||
/// # extern crate actix_web;
|
||||
/// # use actix_web::{App, HttpRequest, HttpResponse, http};
|
||||
/// #
|
||||
/// fn index(req: HttpRequest) -> HttpResponse {
|
||||
/// let url = req.url_for("foo", &["1", "2", "3"]); // <- generate url for "foo" resource
|
||||
/// HttpResponse::Ok().into()
|
||||
|
Loading…
Reference in New Issue
Block a user