1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

od: add missing backticks

This commit is contained in:
Daniel Hofstetter 2023-03-10 15:24:33 +01:00
parent 62826143b5
commit 97b51df2bc
4 changed files with 6 additions and 6 deletions

View file

@ -56,7 +56,7 @@ where
I: PeekRead,
{
/// calls `peek_read` on the internal stream to (re)fill the buffer. Returns a
/// MemoryDecoder providing access to the result or returns an i/o error.
/// `MemoryDecoder` providing access to the result or returns an i/o error.
pub fn peek_read(&mut self) -> io::Result<MemoryDecoder> {
match self
.input
@ -81,7 +81,7 @@ impl<'a, I> HasError for InputDecoder<'a, I>
where
I: HasError,
{
/// calls has_error on the internal stream.
/// calls `has_error` on the internal stream.
fn has_error(&self) -> bool {
self.input.has_error()
}

View file

@ -459,7 +459,7 @@ pub fn uu_app() -> Command {
)
}
/// Loops through the input line by line, calling print_bytes to take care of the output.
/// Loops through the input line by line, calling `print_bytes` to take care of the output.
fn odfunc<I>(
input_offset: &mut InputOffset,
input_decoder: &mut InputDecoder<I>,

View file

@ -139,7 +139,7 @@ impl OutputInfo {
/// ```
///
/// This algorithm assumes the size of all types is a power of 2 (1, 2, 4, 8, 16, ...)
/// Increase MAX_BYTES_PER_UNIT to allow larger types.
/// Increase `MAX_BYTES_PER_UNIT` to allow larger types.
fn calculate_alignment(
sf: &dyn TypeSizeInfo,
byte_size_block: usize,

View file

@ -90,8 +90,8 @@ pub fn parse_inputs(matches: &dyn CommandLineOpts) -> Result<CommandLineInputs,
/// interprets inputs when --traditional is on the command line
///
/// normally returns CommandLineInputs::FileAndOffset, but if no offset is found,
/// it returns CommandLineInputs::FileNames (also to differentiate from the offset == 0)
/// normally returns `CommandLineInputs::FileAndOffset`, but if no offset is found,
/// it returns `CommandLineInputs::FileNames` (also to differentiate from the offset == 0)
pub fn parse_inputs_traditional(input_strings: &[&str]) -> Result<CommandLineInputs, String> {
match input_strings.len() {
0 => Ok(CommandLineInputs::FileNames(vec!["-".to_string()])),