diff --git a/network-libp2p/src/connection_pool/behaviour.rs b/network-libp2p/src/connection_pool/behaviour.rs index 3376e59f5b..b73c0f8caa 100644 --- a/network-libp2p/src/connection_pool/behaviour.rs +++ b/network-libp2p/src/connection_pool/behaviour.rs @@ -365,7 +365,7 @@ impl ConnectionPoolBehaviour { } /// This function is used to select a list of peers, based on services flag, in order to dial them. - /// num_peers is used to specify how many peers are selected + /// `num_peers` is used to specify how many peers are selected /// The number of peers returned equals num_peers unless there are less available peers pub fn choose_peers_to_dial_by_services( &self, diff --git a/network-libp2p/src/network.rs b/network-libp2p/src/network.rs index df94802f12..1fa3af14b8 100644 --- a/network-libp2p/src/network.rs +++ b/network-libp2p/src/network.rs @@ -1781,8 +1781,8 @@ impl NetworkInterface for Network { } } - // If we don't have enough connected peer that support the desired services, - // we tell the network to connect to new peers that supports such services. + // If we don't have enough connected peers that support the desired services, + // we tell the network to connect to new peers that support such services. if filtered_peers.len() < min_peers { let num_peers = min_peers - filtered_peers.len();