mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 08:41:36 +00:00
Merge pull request #64 from tomaka/fix-doc-test-again
Fix doctest in libp2p-swarm
This commit is contained in:
@ -77,7 +77,7 @@
|
||||
//! # fn main() {
|
||||
//! let tokio_core = tokio_core::reactor::Core::new().unwrap();
|
||||
//! 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
|
||||
//! # }
|
||||
|
Reference in New Issue
Block a user