From da78707ec604b151681f243d9278fc57c68c4c1b Mon Sep 17 00:00:00 2001 From: Marcio Diaz Date: Sun, 1 Dec 2019 10:48:31 +0100 Subject: [PATCH] Fix functions doc. --- client/peerset/src/peersstate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/peerset/src/peersstate.rs b/client/peerset/src/peersstate.rs index 57dfc50d345b0..a1a50750f32a4 100644 --- a/client/peerset/src/peersstate.rs +++ b/client/peerset/src/peersstate.rs @@ -249,8 +249,8 @@ impl PeersState { /// Tries to accept the peer as an incoming connection. /// - /// If there are enough slots available, switches the node to "connected" and returns `Ok`. If - /// the slots are full, the node stays "not connected" and we return `Err`. + /// If there are enough slots available, switches the node to "connected" and returns `true`. If + /// the slots are full, the node stays "not connected" and we return `false`. /// /// Note that reserved nodes don't count towards the number of slots. fn try_accept_incoming(&mut self, peer_id: &PeerId) -> bool {