File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff 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 > {
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl Number {
112112 ///
113113 /// If incrementing this number would result in an overflow beyond
114114 /// the maximum representable number, then return
115- /// [ `Err(Overflow)`] . The [`FixedWidthNumber`] overflows, but
115+ /// `Err(Overflow)`. The [`FixedWidthNumber`] overflows, but
116116 /// [`DynamicWidthNumber`] does not.
117117 ///
118118 /// The [`DynamicWidthNumber`] follows a non-standard incrementing
@@ -122,7 +122,7 @@ impl Number {
122122 ///
123123 /// # Errors
124124 ///
125- /// This method returns [ `Err(Overflow)`] when attempting to
125+ /// This method returns `Err(Overflow)` when attempting to
126126 /// increment beyond the largest representable number.
127127 ///
128128 /// # Examples
@@ -212,7 +212,7 @@ impl FixedWidthNumber {
212212 ///
213213 /// This method adds one to this number. If incrementing this
214214 /// number would require more digits than are available with the
215- /// specified width, then this method returns [ `Err(Overflow)`] .
215+ /// specified width, then this method returns `Err(Overflow)`.
216216 fn increment ( & mut self ) -> Result < ( ) , Overflow > {
217217 for i in ( 0 ..self . digits . len ( ) ) . rev ( ) {
218218 // Increment the current digit.
Original file line number Diff line number Diff line change @@ -207,9 +207,9 @@ impl BytesChunk {
207207 }
208208
209209 /// Fills `self.buffer` with maximal [`BUFFER_SIZE`] number of bytes, draining the reader by
210- /// 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
212- /// read from the source.
210+ /// that number of bytes. If EOF is reached (so 0 bytes are read), it returns
211+ /// [`UResult<None>`]; otherwise, it returns [`UResult< Some(bytes)>`], where bytes is the
212+ /// number of bytes 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 ) ?;
215215 self . bytes = num_bytes;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ fn version_non_digit_cmp(a: &[u8], b: &[u8]) -> Ordering {
3232 }
3333}
3434
35- /// Remove file endings matching the regex (\.[A-Za-z~][A-Za-z0-9~]*)*$
35+ /// Remove file endings matching the regex ` (\.[A-Za-z~][A-Za-z0-9~]*)*$`
3636fn remove_file_ending ( a : & [ u8 ] ) -> & [ u8 ] {
3737 let mut ending_start = None ;
3838 let mut prev_was_dot = false ;
Original file line number Diff line number Diff line change @@ -1672,7 +1672,7 @@ impl UCommand {
16721672
16731673 /// Set if process should be run in a simulated terminal
16741674 ///
1675- /// This is useful to test behavior that is only active if e.g. [ `stdout.is_terminal()`] is [ `true`] .
1675+ /// This is useful to test behavior that is only active if e.g. `stdout.is_terminal()` is `true`.
16761676 /// This function uses default terminal size and attaches stdin, stdout and stderr to that terminal.
16771677 /// For more control over the terminal simulation, use `terminal_sim_stdio`
16781678 /// (unix: pty, windows: `ConPTY`[not yet supported])
@@ -1693,7 +1693,7 @@ impl UCommand {
16931693
16941694 /// Allows to simulate a terminal use-case with specific properties.
16951695 ///
1696- /// This is useful to test behavior that is only active if e.g. [ `stdout.is_terminal()`] is [ `true`] .
1696+ /// This is useful to test behavior that is only active if e.g. `stdout.is_terminal()` is `true`.
16971697 /// This function allows to set a specific size and to attach the terminal to only parts of the in/out.
16981698 #[ cfg( unix) ]
16991699 pub fn terminal_sim_stdio ( & mut self , config : TerminalSimulation ) -> & mut Self {
You can’t perform that action at this time.
0 commit comments