Skip to content

Commit 0ac0168

Browse files
committed
fix: error on example code
1 parent e06ae37 commit 0ac0168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ __Hello World__
5959
```rust
6060
#![feature(async_await)]
6161

62-
fn main() -> Result<(), failure::Error> {
62+
fn main() -> Result<(), std::io::Error> {
6363
let mut app = tide::App::new(());
6464
app.at("/").get(async move |_| "Hello, world!");
65-
app.serve("127.0.0.1:8000")?;
65+
Ok(app.serve("127.0.0.1:8000")?)
6666
}
6767
```
6868

0 commit comments

Comments
 (0)