mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
fix doc string test
This commit is contained in:
parent
2f60a4b89d
commit
81f4e12a27
@ -119,7 +119,7 @@ impl<S: 'static> Route<S> {
|
|||||||
/// # extern crate futures;
|
/// # extern crate futures;
|
||||||
/// #[macro_use] extern crate serde_derive;
|
/// #[macro_use] extern crate serde_derive;
|
||||||
/// use actix_web::*;
|
/// use actix_web::*;
|
||||||
/// use actix_web::{with, Path, HttpRequestExtractor};
|
/// use actix_web::Path;
|
||||||
///
|
///
|
||||||
/// #[derive(Deserialize)]
|
/// #[derive(Deserialize)]
|
||||||
/// struct Info {
|
/// struct Info {
|
||||||
|
@ -37,7 +37,7 @@ impl<T, D, S, F, R> WithHandler<T, D, S> for F
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn with<T, D, S, H>(h: H) -> With<T, D, S, H>
|
pub(crate) fn with<T, D, S, H>(h: H) -> With<T, D, S, H>
|
||||||
where H: WithHandler<T, D, S>,
|
where H: WithHandler<T, D, S>,
|
||||||
D: HttpRequestExtractor<T>,
|
D: HttpRequestExtractor<T>,
|
||||||
T: DeserializeOwned,
|
T: DeserializeOwned,
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
//! }
|
//! }
|
||||||
//!
|
//!
|
||||||
//! // Handler for ws::Message messages
|
//! // Handler for ws::Message messages
|
||||||
//! impl StreamHandler<ws::Message, ws::WsError> for Ws {
|
//! impl StreamHandler<ws::Message, ws::ProtocolError> for Ws {
|
||||||
//!
|
//!
|
||||||
//! fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) {
|
//! fn handle(&mut self, msg: ws::Message, ctx: &mut Self::Context) {
|
||||||
//! match msg {
|
//! match msg {
|
||||||
|
Loading…
Reference in New Issue
Block a user