Skip to content

Commit 51ed71b

Browse files
docs(client): use Method::POST to match the example in https://hyper.rs/guides/client/advanced/ (#2479)
1 parent 41f9957 commit 51ed71b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ where
141141
/// ```
142142
/// # #[cfg(feature = "runtime")]
143143
/// # fn run () {
144-
/// use hyper::{Body, Client, Request};
144+
/// use hyper::{Body, Method, Client, Request};
145145
///
146146
/// let client = Client::new();
147147
///
148148
/// let req = Request::builder()
149-
/// .method("POST")
149+
/// .method(Method::POST)
150150
/// .uri("http://httpbin.org/post")
151151
/// .body(Body::from("Hallo!"))
152152
/// .expect("request builder");

0 commit comments

Comments
 (0)