From 53473c38fea95d1c114d3d4b983f28a653be793f Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 31 Oct 2024 00:59:51 +0200 Subject: [PATCH] update comments --- src/client/response/meta.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/response/meta.rs b/src/client/response/meta.rs index 6ad13c3..9691f23 100644 --- a/src/client/response/meta.rs +++ b/src/client/response/meta.rs @@ -130,7 +130,7 @@ impl Meta { // Tools -/// Asynchronously take meta bytes from [InputStream](https://docs.gtk.org/gio/class.InputStream.html) +/// Asynchronously read all meta bytes from [InputStream](https://docs.gtk.org/gio/class.InputStream.html) /// for given [SocketConnection](https://docs.gtk.org/gio/class.SocketConnection.html) /// /// Return UTF-8 buffer collected. @@ -155,7 +155,7 @@ pub fn read_from_socket_connection_async( return on_complete(Err((Error::Protocol, None))); } - // Read next byte without buffer record + // Read next byte without record if bytes.contains(&b'\r') { return read_from_socket_connection_async( buffer, @@ -166,7 +166,7 @@ pub fn read_from_socket_connection_async( ); } - // Complete without buffer record + // Complete without record if bytes.contains(&b'\n') { return on_complete(Ok(buffer)); }