mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-21 19:13:07 +00:00
Fix tiny typo (#601)
This commit is contained in:
parent
ffaa6acec8
commit
67329add00
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
Query the GitHub Users Endpoint using a HEAD
|
||||
request ([`Client::head`]) and then inspect the response code to determine
|
||||
success. This is a quick way to query a rest resource without needing to receive
|
||||
a body. [`reqwest::Client`] cofigured with [`ClientBuilder::timeout`] ensures
|
||||
a body. [`reqwest::Client`] configured with [`ClientBuilder::timeout`] ensures
|
||||
a request will not last longer than a timeout.
|
||||
|
||||
Due to both [`ClientBuilder::build`] and [`ReqwestBuilder::send`] returning [`reqwest::Error`]
|
||||
|
@ -42,4 +42,4 @@ async fn main() -> Result<()> {
|
|||
[`RequestBuilder::send`]: https://docs.rs/reqwest/*/reqwest/struct.RequestBuilder.html#method.send
|
||||
[`reqwest::Client`]: https://docs.rs/reqwest/*/reqwest/struct.Client.html
|
||||
[`reqwest::Error`]: https://docs.rs/reqwest/*/reqwest/struct.Error.html
|
||||
[`reqwest::Result`]:https://docs.rs/reqwest/*/reqwest/type.Result.html
|
||||
[`reqwest::Result`]:https://docs.rs/reqwest/*/reqwest/type.Result.html
|
||||
|
|
Loading…
Reference in a new issue