mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
better examle in doc string
This commit is contained in:
parent
b799677532
commit
ea018e0ad6
@ -2,10 +2,10 @@
|
|||||||
//! for Rust.
|
//! for Rust.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! use actix_web::{server, App, Path};
|
//! use actix_web::{server, App, Path, Responder};
|
||||||
//! # use std::thread;
|
//! # 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)
|
//! format!("Hello {}! id:{}", info.0, info.1)
|
||||||
//! }
|
//! }
|
||||||
//!
|
//!
|
||||||
|
Loading…
Reference in New Issue
Block a user