docs(client): fix missing feature attrs in another doctest

when testing my fix for #2687, I noticed that this doctest has the same issue,
so here's another fix.
This commit is contained in:
muvlon
2021-11-06 19:52:36 +01:00
committed by Sean McArthur
parent 3221f573d2
commit 913be88f71

View File

@@ -27,10 +27,10 @@
//! [full client example](https://github.com/hyperium/hyper/blob/master/examples/client.rs). //! [full client example](https://github.com/hyperium/hyper/blob/master/examples/client.rs).
//! //!
//! ``` //! ```
//! # #[cfg(all(feature = "tcp", feature = "client", any(feature = "http1", feature = "http2")))]
//! # async fn fetch_httpbin() -> hyper::Result<()> {
//! use hyper::{body::HttpBody as _, Client, Uri}; //! use hyper::{body::HttpBody as _, Client, Uri};
//! //!
//! # #[cfg(feature = "tcp")]
//! # async fn fetch_httpbin() -> hyper::Result<()> {
//! let client = Client::new(); //! let client = Client::new();
//! //!
//! // Make a GET /ip to 'http://httpbin.org' //! // Make a GET /ip to 'http://httpbin.org'