Fix doctest in libp2p-swarm

This commit is contained in:
Pierre Krieger 2017-12-06 15:26:46 +01:00
parent 81cfc3273b
commit c6e917073b

View File

@ -77,7 +77,7 @@
//! # fn main() { //! # fn main() {
//! let tokio_core = tokio_core::reactor::Core::new().unwrap(); //! let tokio_core = tokio_core::reactor::Core::new().unwrap();
//! let tcp_transport = libp2p_tcp_transport::TcpConfig::new(tokio_core.handle()); //! let tcp_transport = libp2p_tcp_transport::TcpConfig::new(tokio_core.handle());
//! let upgraded = tcp_transport.with_upgrade(libp2p_swarm::PlainText); //! let upgraded = tcp_transport.with_upgrade(libp2p_swarm::PlainTextConfig);
//! //!
//! // upgraded.dial(...) // automatically applies the plain text protocol on the socket //! // upgraded.dial(...) // automatically applies the plain text protocol on the socket
//! # } //! # }