Skip to content

Commit 99dcff7

Browse files
committed
fix(csplit): fix broken intra-doc links in documentation
Fixed two broken intra-doc links that reference struct fields: - Line 283: Changed [self.dev_null] to inline code `self.dev_null` - Line 575: Changed [self.size] to inline code `self.size` These caused rustdoc warnings that are treated as errors in CI with -Dwarnings flag.
1 parent cee2a07 commit 99dcff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uu/csplit/src/csplit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl SplitWriter<'_> {
280280
}
281281

282282
/// Writes the line to the current split.
283-
/// If [`self.dev_null`] is true, then the line is discarded.
283+
/// If `self.dev_null` is true, then the line is discarded.
284284
///
285285
/// # Errors
286286
///
@@ -572,7 +572,7 @@ where
572572
self.size = size;
573573
}
574574

575-
/// Add a line to the buffer. If the buffer has [`self.size`] elements, then its head is removed and
575+
/// Add a line to the buffer. If the buffer has `self.size` elements, then its head is removed and
576576
/// the new line is pushed to the buffer. The removed head is then available in the returned
577577
/// option.
578578
fn add_line_to_buffer(&mut self, ln: usize, line: String) -> Option<String> {

0 commit comments

Comments
 (0)