mirror of
https://github.com/actix/actix-web.git
synced 2025-01-02 21:38:46 +00:00
Merge pull request #219 from benjamingroeber/improve-readme
correct order of format arguments in readme example
This commit is contained in:
commit
c172deb0f3
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ extern crate actix_web;
|
|||
use actix_web::{http, server, App, Path};
|
||||
|
||||
fn index(info: Path<(u32, String)>) -> String {
|
||||
format!("Hello {}! id:{}", info.0, info.1)
|
||||
format!("Hello {}! id:{}", info.1, info.0)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue