Skip to content

Commit c61d477

Browse files
authored
Merge pull request #460 from jbr/examples-instructions
Include instructions on running examples in README
2 parents 2fb58df + 15bccb9 commit c61d477

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,18 @@ async-std = { version = "1.5.0", features = ["attributes"] }
6161
#[async_std::main]
6262
async fn main() -> Result<(), std::io::Error> {
6363
let mut app = tide::new();
64-
app.at("/").get(|_| async move { "Hello, world!" });
64+
app.at("/").get(|_| async { Ok("Hello, world!") });
6565
app.listen("127.0.0.1:8080").await?;
6666
Ok(())
6767
}
6868
```
6969

70+
To try [the included examples](https://github.com/http-rs/tide/tree/master/examples), check out this repository and run
71+
```sh
72+
$ cargo run --example # shows a list of available examples
73+
$ cargo run --example hello
74+
```
75+
7076
## Resources
7177

7278
Read about the design here:

0 commit comments

Comments
 (0)