From 51ed71b0a6e1d90d324f87151434334bab6fb837 Mon Sep 17 00:00:00 2001 From: Vagelis Prokopiou Date: Thu, 25 Mar 2021 22:34:03 +0200 Subject: [PATCH] docs(client): use Method::POST to match the example in https://hyper.rs/guides/client/advanced/ (#2479) --- src/client/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/client.rs b/src/client/client.rs index 10cbc37b63..37a3251a7a 100644 --- a/src/client/client.rs +++ b/src/client/client.rs @@ -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");