mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
od: add missing backticks
This commit is contained in:
parent
62826143b5
commit
97b51df2bc
4 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ where
|
||||||
I: PeekRead,
|
I: PeekRead,
|
||||||
{
|
{
|
||||||
/// calls `peek_read` on the internal stream to (re)fill the buffer. Returns a
|
/// 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> {
|
pub fn peek_read(&mut self) -> io::Result<MemoryDecoder> {
|
||||||
match self
|
match self
|
||||||
.input
|
.input
|
||||||
|
@ -81,7 +81,7 @@ impl<'a, I> HasError for InputDecoder<'a, I>
|
||||||
where
|
where
|
||||||
I: HasError,
|
I: HasError,
|
||||||
{
|
{
|
||||||
/// calls has_error on the internal stream.
|
/// calls `has_error` on the internal stream.
|
||||||
fn has_error(&self) -> bool {
|
fn has_error(&self) -> bool {
|
||||||
self.input.has_error()
|
self.input.has_error()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>(
|
fn odfunc<I>(
|
||||||
input_offset: &mut InputOffset,
|
input_offset: &mut InputOffset,
|
||||||
input_decoder: &mut InputDecoder<I>,
|
input_decoder: &mut InputDecoder<I>,
|
||||||
|
|
|
@ -139,7 +139,7 @@ impl OutputInfo {
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// This algorithm assumes the size of all types is a power of 2 (1, 2, 4, 8, 16, ...)
|
/// 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(
|
fn calculate_alignment(
|
||||||
sf: &dyn TypeSizeInfo,
|
sf: &dyn TypeSizeInfo,
|
||||||
byte_size_block: usize,
|
byte_size_block: usize,
|
||||||
|
|
|
@ -90,8 +90,8 @@ pub fn parse_inputs(matches: &dyn CommandLineOpts) -> Result<CommandLineInputs,
|
||||||
|
|
||||||
/// interprets inputs when --traditional is on the command line
|
/// interprets inputs when --traditional is on the command line
|
||||||
///
|
///
|
||||||
/// normally returns CommandLineInputs::FileAndOffset, but if no offset is found,
|
/// normally returns `CommandLineInputs::FileAndOffset`, but if no offset is found,
|
||||||
/// it returns CommandLineInputs::FileNames (also to differentiate from the offset == 0)
|
/// it returns `CommandLineInputs::FileNames` (also to differentiate from the offset == 0)
|
||||||
pub fn parse_inputs_traditional(input_strings: &[&str]) -> Result<CommandLineInputs, String> {
|
pub fn parse_inputs_traditional(input_strings: &[&str]) -> Result<CommandLineInputs, String> {
|
||||||
match input_strings.len() {
|
match input_strings.len() {
|
||||||
0 => Ok(CommandLineInputs::FileNames(vec!["-".to_string()])),
|
0 => Ok(CommandLineInputs::FileNames(vec!["-".to_string()])),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue