Add dependencies to docs example

This commit is contained in:
Elliot Jackson 2020-02-06 21:41:37 +01:00
parent 3851a377df
commit 05359572eb
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@
//! for Rust.
//!
//! ```rust,no_run
//! [dependencies]
//! actix-web = "2.0"
//! actix-rt = "1.0"
//! ```
//!
//! ```rust,no_run
//! use actix_web::{web, App, Responder, HttpServer};
//!
//! async fn index(info: web::Path<(String, u32)>) -> impl Responder {