Skip to content

Commit

Permalink
protocols/autonat: Fix wrong parameter name in examples (libp2p#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Mar 12, 2022
1 parent 0d04e0c commit 028156a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/client.rs
Expand Up @@ -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-addr> --server-peer-id <server-peer-id> --listen_port <port>
//! cargo run --example client -- --server-address <server-addr> --server-peer-id <server-peer-id> --listen-port <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;
Expand Down
4 changes: 2 additions & 2 deletions examples/server.rs
Expand Up @@ -22,9 +22,9 @@
//!
//! To start the server run:
//! ```sh
//! cargo run --example server -- --listen_port <port>
//! cargo run --example server -- --listen-port <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;
Expand Down

0 comments on commit 028156a

Please sign in to comment.