Skip to content

Commit cee2a07

Browse files
committed
fix(tail): fix broken intra-doc link in chunks.rs documentation
The documentation comment for the fill() method contained an invalid intra-doc link [Some(bytes)] which should be inline code `Some(bytes)`. This caused rustdoc warnings that are treated as errors in CI with -Dwarnings flag.
1 parent 670b14b commit cee2a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/tail/src/chunks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl BytesChunk {
208208

209209
/// Fills `self.buffer` with maximal [`BUFFER_SIZE`] number of bytes, draining the reader by
210210
/// that number of bytes. If EOF is reached (so 0 bytes are read), then returns
211-
/// [`UResult<None>`] or else the result with [`Some(bytes)`] where bytes is the number of bytes
211+
/// [`UResult<None>`] or else the result with `Some(bytes)` where bytes is the number of bytes
212212
/// read from the source.
213213
pub fn fill(&mut self, filehandle: &mut impl BufRead) -> UResult<Option<usize>> {
214214
let num_bytes = filehandle.read(&mut self.buffer)?;

0 commit comments

Comments
 (0)