From 028156ae583090ebbb435913af590230c2bdb31d Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Sun, 13 Mar 2022 08:23:15 +0900 Subject: [PATCH] protocols/autonat: Fix wrong parameter name in examples (#2555) --- examples/client.rs | 4 ++-- examples/server.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;