mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update comments
This commit is contained in:
parent
c9209b1743
commit
53473c38fe
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue