Skip to content

Commit

Permalink
docs: add loging start to readme example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishrock123 committed Jul 21, 2020
1 parent ae0e532 commit 207bf59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async-std = { version = "1.6.0", features = ["attributes"] }
```rust
#[async_std::main]
async fn main() -> Result<(), std::io::Error> {
tide::log::start();
let mut app = tide::new();
app.at("/").get(|_| async { Ok("Hello, world!") });
app.listen("127.0.0.1:8080").await?;
Expand Down

0 comments on commit 207bf59

Please sign in to comment.