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