mirror of https://github.com/fafhrd91/actix-web
Fix formatting
This commit is contained in:
parent
efe87c5bcf
commit
9780f11936
|
@ -239,7 +239,7 @@ where
|
||||||
/// Default service that is invoked when no matching resource could be found.
|
/// Default service that is invoked when no matching resource could be found.
|
||||||
///
|
///
|
||||||
/// You must use a [`Route`] as default service:
|
/// You must use a [`Route`] as default service:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use actix_web::{web, App, HttpResponse};
|
/// use actix_web::{web, App, HttpResponse};
|
||||||
///
|
///
|
||||||
|
|
|
@ -314,7 +314,7 @@ where
|
||||||
|
|
||||||
/// Default service to be used if no matching route could be found.
|
/// Default service to be used if no matching route could be found.
|
||||||
/// You can pass a [`Route`] as default_service.
|
/// You can pass a [`Route`] as default_service.
|
||||||
///
|
///
|
||||||
/// If no default service is specified, a `405 Method Not Allowed` response will be returned to the caller.
|
/// If no default service is specified, a `405 Method Not Allowed` response will be returned to the caller.
|
||||||
/// [`Resource`] does **not** inherit the default handler specified on the parent [`App`](crate::App) or [`Scope`](crate::web::Scope).
|
/// [`Resource`] does **not** inherit the default handler specified on the parent [`App`](crate::App) or [`Scope`](crate::web::Scope).
|
||||||
pub fn default_service<F, U>(mut self, f: F) -> Self
|
pub fn default_service<F, U>(mut self, f: F) -> Self
|
||||||
|
|
Loading…
Reference in New Issue