Skip to content

Commit

Permalink
docs(client): use Method::POST to match the example in https://hyper.…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagelis-Prokopiou authored Mar 25, 2021
1 parent 41f9957 commit 51ed71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ where
/// ```
/// # #[cfg(feature = "runtime")]
/// # fn run () {
/// use hyper::{Body, Client, Request};
/// use hyper::{Body, Method, Client, Request};
///
/// let client = Client::new();
///
/// let req = Request::builder()
/// .method("POST")
/// .method(Method::POST)
/// .uri("http://httpbin.org/post")
/// .body(Body::from("Hallo!"))
/// .expect("request builder");
Expand Down

0 comments on commit 51ed71b

Please sign in to comment.