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
|
// 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)
|
/// for given [SocketConnection](https://docs.gtk.org/gio/class.SocketConnection.html)
|
||||||
///
|
///
|
||||||
/// Return UTF-8 buffer collected.
|
/// Return UTF-8 buffer collected.
|
||||||
|
|
@ -155,7 +155,7 @@ pub fn read_from_socket_connection_async(
|
||||||
return on_complete(Err((Error::Protocol, None)));
|
return on_complete(Err((Error::Protocol, None)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read next byte without buffer record
|
// Read next byte without record
|
||||||
if bytes.contains(&b'\r') {
|
if bytes.contains(&b'\r') {
|
||||||
return read_from_socket_connection_async(
|
return read_from_socket_connection_async(
|
||||||
buffer,
|
buffer,
|
||||||
|
|
@ -166,7 +166,7 @@ pub fn read_from_socket_connection_async(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Complete without buffer record
|
// Complete without record
|
||||||
if bytes.contains(&b'\n') {
|
if bytes.contains(&b'\n') {
|
||||||
return on_complete(Ok(buffer));
|
return on_complete(Ok(buffer));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue