From 6ba1d5d1fbf89a5e00b58fd07b340879481bf45d Mon Sep 17 00:00:00 2001 From: Marcio Diaz <marcio.diaz@gmail.com> Date: Sun, 1 Dec 2019 12:08:24 +0100 Subject: [PATCH] Fix functions doc. (#4260) --- substrate/client/peerset/src/peersstate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/client/peerset/src/peersstate.rs b/substrate/client/peerset/src/peersstate.rs index 57dfc50d345..a1a50750f32 100644 --- a/substrate/client/peerset/src/peersstate.rs +++ b/substrate/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 { -- GitLab