mirror of https://github.com/fafhrd91/actix-web
fix order of name and id in readme example
This commit is contained in:
parent
5f5ddc8f01
commit
2f244ea028
|
@ -36,7 +36,7 @@ extern crate actix_web;
|
||||||
use actix_web::{http, server, App, Path};
|
use actix_web::{http, server, App, Path};
|
||||||
|
|
||||||
fn index(info: Path<(u32, String)>) -> String {
|
fn index(info: Path<(u32, String)>) -> String {
|
||||||
format!("Hello {}! id:{}", info.0, info.1)
|
format!("Hello {}! id:{}", info.1, info.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in New Issue