Skip to content

Commit

Permalink
removed a semicolon so that the method has a return value
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmir17 committed Apr 11, 2024
1 parent 94b9557 commit 12e0c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actix_web_study/examples/greet_simple_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use actix_web::{web, App, HttpRequest, HttpServer, Responder};
// example from zero to production in rust
async fn greet(req: HttpRequest) -> impl Responder {
let name = req.match_info().get("name").unwrap_or("World");
format!("Hello {}!", &name);
format!("Hello {}!", &name)
}

#[tokio::main]
Expand Down

0 comments on commit 12e0c97

Please sign in to comment.