diff --git a/src/uu/od/src/inputdecoder.rs b/src/uu/od/src/inputdecoder.rs index 31e833698..318571cf3 100644 --- a/src/uu/od/src/inputdecoder.rs +++ b/src/uu/od/src/inputdecoder.rs @@ -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 { 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() } diff --git a/src/uu/od/src/od.rs b/src/uu/od/src/od.rs index 3101c8c8d..5e8f8814d 100644 --- a/src/uu/od/src/od.rs +++ b/src/uu/od/src/od.rs @@ -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( input_offset: &mut InputOffset, input_decoder: &mut InputDecoder, diff --git a/src/uu/od/src/output_info.rs b/src/uu/od/src/output_info.rs index 60cbaf5ab..211574a61 100644 --- a/src/uu/od/src/output_info.rs +++ b/src/uu/od/src/output_info.rs @@ -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, diff --git a/src/uu/od/src/parse_inputs.rs b/src/uu/od/src/parse_inputs.rs index 275ab8cfc..3093843d4 100644 --- a/src/uu/od/src/parse_inputs.rs +++ b/src/uu/od/src/parse_inputs.rs @@ -90,8 +90,8 @@ pub fn parse_inputs(matches: &dyn CommandLineOpts) -> Result Result { match input_strings.len() { 0 => Ok(CommandLineInputs::FileNames(vec!["-".to_string()])),