diff --git a/examples/client.rs b/examples/client.rs index d99a2b07715..78290a66fe6 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -25,9 +25,9 @@ //! //! To run this example, follow the instructions in `examples/server` to start a server, then run in a new terminal: //! ```sh -//! cargo run --example client -- --server-address --server-peer-id --listen_port +//! cargo run --example client -- --server-address --server-peer-id --listen-port //! ``` -//! The `listen_port` parameter is optional and allows to set a fixed port at which the local client should listen. +//! The `listen-port` parameter is optional and allows to set a fixed port at which the local client should listen. use futures::prelude::*; use libp2p::autonat; diff --git a/examples/server.rs b/examples/server.rs index 556367fdc90..7a0c6b0dbeb 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -22,9 +22,9 @@ //! //! To start the server run: //! ```sh -//! cargo run --example server -- --listen_port +//! cargo run --example server -- --listen-port //! ``` -//! The `listen_port` parameter is optional and allows to set a fixed port at which the local peer should listen. +//! The `listen-port` parameter is optional and allows to set a fixed port at which the local peer should listen. use futures::prelude::*; use libp2p::autonat;