1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

cleanup doc tests

This commit is contained in:
Nikolay Kim
2018-01-09 10:08:06 -08:00
parent c7798ef45d
commit a159a9cd6e
3 changed files with 12 additions and 6 deletions

View File

@ -1,18 +1,21 @@
//! Actix web is a small, fast, down-to-earth, open source rust web framework.
//! Actix web is a small, fast, pragmatic, open source rust web framework.
//!
//! ```rust,ignore
//! ```rust
//! use actix_web::*;
//! # use std::thread;
//!
//! fn index(req: HttpRequest) -> String {
//! format!("Hello {}!", &req.match_info()["name"])
//! }
//!
//! fn main() {
//! # thread::spawn(|| {
//! HttpServer::new(
//! || Application::new()
//! .resource("/{name}", |r| r.f(index)))
//! .bind("127.0.0.1:8080")?
//! .start()
//! .bind("127.0.0.1:8080").unwrap()
//! .run();
//! # });
//! }
//! ```
//!