mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-24 20:43:07 +00:00
fixes rest-get reqwest typo
This commit is contained in:
parent
752b035c1a
commit
6a273c35c6
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ Queries GitHub [stargazers API v3](https://developer.github.com/v3/activity/star
|
|||
with [`reqwest::get`] to get list of all users who have marked a GitHub project with a star.
|
||||
[`reqwest::Response`] is deserialized with [`Response::json`] into `User` objects implementing [`serde::Deserialize`].
|
||||
|
||||
[tokio::main] is used to set up the async executor and the process waits for [`reqwet::get`] to complete before
|
||||
processing the response into User instances.
|
||||
[tokio::main] is used to set up the async executor and the process waits for [`reqwest::get`] to complete before
|
||||
processing the response into User instances.
|
||||
|
||||
```rust,edition2018,no_run
|
||||
use serde::Deserialize;
|
||||
|
|
Loading…
Reference in a new issue