From 7345986ff1345a0825ab54bcda9d10af2c58161b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 24 Apr 2024 19:29:55 +0300 Subject: 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 Reviewed-by: edef Tested-by: BuildkiteCI --- tvix/nix-compat/src/wire/bytes/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/nix-compat/src/wire/bytes/reader.rs b/tvix/nix-compat/src/wire/bytes/reader.rs index c36729c614..9aea677645 100644 --- a/tvix/nix-compat/src/wire/bytes/reader.rs +++ b/tvix/nix-compat/src/wire/bytes/reader.rs @@ -96,7 +96,7 @@ where } BytesPacketPosition::Size(pos) => { // 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); read_buf.advance(pos); ready!(this.inner.as_mut().poll_read(cx, &mut read_buf))?; -- cgit 1.4.1