about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-04-24T16·29+0300
committerclbot <clbot@tvl.fyi>2024-04-24T20·06+0000
commit7345986ff1345a0825ab54bcda9d10af2c58161b (patch)
treec1d2f77a6d4301a02046be36eb45ff5662ab9b5b
parent2fd9dc11c2bbdc826a4fb84d2d149b5b1cce7746 (diff)
docs(tvix/nix-compat/wire/bytes/reader): fix typo r/8004
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
-rw-r--r--tvix/nix-compat/src/wire/bytes/reader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/wire/bytes/reader.rs b/tvix/nix-compat/src/wire/bytes/reader.rs
index c36729c6142b..9aea677645e7 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))?;