Merge pull request #64 from tomaka/fix-doc-test-again

Fix doctest in libp2p-swarm
This commit is contained in:
tomaka
2017-12-06 15:39:45 +01:00
committed by GitHub

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
//! # } //! # }