Skip to content

Commit 42fd14f

Browse files
authored
Fix typo in routing example (#772)
1 parent ad248f0 commit 42fd14f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/routing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async fn main() {
1010
// into super powers!
1111

1212
// GET /
13-
let hello_wold = warp::path::end().map(|| "Hello, World at root!");
13+
let hello_world = warp::path::end().map(|| "Hello, World at root!");
1414

1515
// GET /hi
1616
let hi = warp::path("hi").map(|| "Hello, World!");
@@ -87,7 +87,7 @@ async fn main() {
8787
// GET /math/:u16/times/:u16
8888

8989
let routes = warp::get().and(
90-
hello_wold
90+
hello_world
9191
.or(hi)
9292
.or(hello_from_warp)
9393
.or(bye)

0 commit comments

Comments
 (0)