1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-31 11:02:08 +01:00

Merge pull request #219 from benjamingroeber/improve-readme

correct order of format arguments in readme example
This commit is contained in:
Nikolay Kim 2018-05-10 09:15:50 -07:00 committed by GitHub
commit c172deb0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {