1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-04-07 02:29:39 +00:00

Add dependencies to docs example

This commit is contained in:
Elliot Jackson 2020-02-06 21:41:37 +01:00
parent 3851a377df
commit 05359572eb

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 {