Skip to content

Commit 703d9b1

Browse files
Fix doc example
1 parent ccfc864 commit 703d9b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/unversioned/transport/chain.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ impl<Connectors> ChainedConnector<Connectors> {
1010
/// Create a new chained connector that chains a tuple of connectors
1111
///
1212
/// ```rust
13-
/// # use ureq::unversioned::transport::{ChainedConnector, SocsConnector, TcpConnector, RustlsConnector, ConnectProxyConnector};
14-
/// let connector: ChainedConnector<(), (SocsConnector, TcpConnector, RustlsConnector, ConnectProxyConnector)> = ChainedConnector::new(SocsConnector::default(), TcpConnector::default(), RustlsConnector::default(), ConnectProxyConnector::default());
13+
/// # use ureq::unversioned::transport::{ChainedConnector, TcpConnector, ConnectProxyConnector};
14+
/// let connector: ChainedConnector<(TcpConnector, ConnectProxyConnector)> =
15+
/// ChainedConnector::new((
16+
/// TcpConnector::default(),
17+
/// ConnectProxyConnector::default()
18+
/// ));
1519
/// ```
1620
pub fn new(connectors: Connectors) -> Self {
1721
Self(connectors)

0 commit comments

Comments
 (0)