mirror of
https://github.com/actix/actix-web.git
synced 2024-11-20 16:41:05 +00:00
better examle in doc string
This commit is contained in:
parent
b799677532
commit
ea018e0ad6
1 changed files with 2 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
|||
//! for Rust.
|
||||
//!
|
||||
//! ```rust
|
||||
//! use actix_web::{server, App, Path};
|
||||
//! use actix_web::{server, App, Path, Responder};
|
||||
//! # use std::thread;
|
||||
//!
|
||||
//! fn index(info: Path<(String, u32)>) -> String {
|
||||
//! fn index(info: Path<(String, u32)>) -> impl Responder {
|
||||
//! format!("Hello {}! id:{}", info.0, info.1)
|
||||
//! }
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue