From 17c75e7759c09ae5d767bf89ae641a8c83dc0b72 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Sun, 8 Sep 2024 04:49:33 +0300 Subject: [PATCH] protocol: update docs --- protocol/src/master.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/protocol/src/master.rs b/protocol/src/master.rs index 5581ab5..9841b50 100644 --- a/protocol/src/master.rs +++ b/protocol/src/master.rs @@ -166,10 +166,7 @@ impl QueryServersResponse<()> { /// Encode packet to `buf`. /// - /// If `buf` has not enougth size to hold all addresses the method must be called - /// multiple times until the end flag equals `true`. - /// - /// Returns how many bytes was written in `buf` and the end flag. + /// Returns number of bytes written into `buf` and how many items was written. pub fn encode(&mut self, buf: &mut [u8], list: &[A]) -> Result<(usize, usize), Error> where A: ServerAddress,