From f32522bef76e95344845af596413c30c07f7bb24 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 22 Jun 2019 07:45:56 +0000 Subject: [PATCH] Fix docstrings for TcpSocket::{send,recv}_slice(). NFC. --- src/socket/tcp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/socket/tcp.rs b/src/socket/tcp.rs index 551490f..9b55522 100644 --- a/src/socket/tcp.rs +++ b/src/socket/tcp.rs @@ -683,7 +683,7 @@ impl<'a> TcpSocket<'a> { /// Enqueue a sequence of octets to be sent, and fill it from a slice. /// - /// This function returns the amount of bytes actually enqueued, which is limited + /// This function returns the amount of octets actually enqueued, which is limited /// by the amount of free space in the transmit buffer; down to zero. /// /// See also [send](#method.send). @@ -727,8 +727,8 @@ impl<'a> TcpSocket<'a> { /// Dequeue a sequence of received octets, and fill a slice from it. /// - /// This function returns the amount of bytes actually dequeued, which is limited - /// by the amount of free space in the transmit buffer; down to zero. + /// This function returns the amount of octets actually dequeued, which is limited + /// by the amount of occupied space in the receive buffer; down to zero. /// /// See also [recv](#method.recv). pub fn recv_slice(&mut self, data: &mut [u8]) -> Result {