Skip to content

Commit

Permalink
tail: Fix documentation intra links
Browse files Browse the repository at this point in the history
  • Loading branch information
Joining7943 committed Jan 8, 2023
1 parent b4a5566 commit 85b1e84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/uu/tail/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub enum FilterMode {
}

impl FilterMode {
/// Parse the [`FilterMode`] from [`clap::parser::matches::ArgMatches`].
/// Parse the [`FilterMode`] from [`clap::parser::ArgMatches`].
fn from(matches: &ArgMatches) -> UResult<Self> {
let zero_term = matches.get_flag(options::ZERO_TERM);
let mode = if let Some(arg) = matches.get_one::<String>(options::BYTES) {
Expand Down Expand Up @@ -343,7 +343,7 @@ impl Settings {

/// Pre-process the [`uucore::Args`] to support parsing of the obsolete syntax of gnu's tail.
///
/// See also [`parse::parse_obsolete`]
/// See also `parse_obsolete`
pub fn arg_iterate<'a>(
mut args: impl uucore::Args + 'a,
) -> UResult<Box<dyn Iterator<Item = OsString> + 'a>> {
Expand Down
6 changes: 3 additions & 3 deletions src/uu/tail/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl IoContextError {
}
}

/// Create a new [`IoContextError`] with an [`io::Error::ErrorKind::IsDirectoryError`].
/// Create a new [`IoContextError`] with an [`io::ErrorKind::IsADirectory`].
///
/// We can't create this error kind directly since it is still unstable in the current rust
/// version.
Expand All @@ -50,7 +50,7 @@ impl IoContextError {
Self::new(io::Error::from_raw_os_error(336), context)
}

/// Create a new [`IoContextError`] with an [`io::Error::ErrorKind::IsDirectoryError`].
/// Create a new [`IoContextError`] with an [`io::ErrorKind::IsADirectory`].
///
/// We can't create this error kind directly since it is still unstable in the current rust
/// version.
Expand Down Expand Up @@ -228,7 +228,7 @@ impl IOErrorHandler {
/// Handle the [`IoContextError`].
///
/// Sets the exit code to `1`, prints the correct error message based on the context in which an
/// [`io::Error`] happened and return an [`IoErrorHandlerResult`].
/// [`io::Error`] happened and return an [`IOErrorHandlerResult`].
pub fn handle(&mut self, error: IoContextError) -> IOErrorHandlerResult {
set_exit_code(1);

Expand Down

0 comments on commit 85b1e84

Please sign in to comment.