docs(tvix/nix-compat/wire/bytes/reader): fix typo
This is a ReadBuf, not a BufRead. Change-Id: Ie80e894f4b24b77cdd60409ddfaa66dae0ffeec9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11511 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: edef <edef@edef.eu> Tested-by: BuildkiteCI
This commit is contained in:
parent
2fd9dc11c2
commit
7345986ff1
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ where
|
||||||
}
|
}
|
||||||
BytesPacketPosition::Size(pos) => {
|
BytesPacketPosition::Size(pos) => {
|
||||||
// try to read more of the size field.
|
// try to read more of the size field.
|
||||||
// We wrap a BufRead around this.payload_size here, and set_filled.
|
// We wrap a ReadBuf around this.payload_size here, and set_filled.
|
||||||
let mut read_buf = tokio::io::ReadBuf::new(this.payload_size);
|
let mut read_buf = tokio::io::ReadBuf::new(this.payload_size);
|
||||||
read_buf.advance(pos);
|
read_buf.advance(pos);
|
||||||
ready!(this.inner.as_mut().poll_read(cx, &mut read_buf))?;
|
ready!(this.inner.as_mut().poll_read(cx, &mut read_buf))?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue