mirror of https://github.com/fafhrd91/actix-web
add `ignore` to doc comment
This commit is contained in:
parent
713d3fd56d
commit
897d015ac5
|
@ -211,7 +211,7 @@ impl HttpRequest {
|
||||||
///
|
///
|
||||||
/// If `App::data` was used to store object, use `Data<T>`:
|
/// If `App::data` was used to store object, use `Data<T>`:
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,ignore
|
||||||
/// let opt_t = req.app_data::<Data<T>>();
|
/// let opt_t = req.app_data::<Data<T>>();
|
||||||
/// ```
|
/// ```
|
||||||
pub fn app_data<T: 'static>(&self) -> Option<&T> {
|
pub fn app_data<T: 'static>(&self) -> Option<&T> {
|
||||||
|
|
Loading…
Reference in New Issue