From 0b89a316c9afbfa81b62716e29b2b76e77e485c1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 30 Jul 2024 15:52:41 +0200 Subject: [PATCH] doc fixup Signed-off-by: Wolfgang Bumiller --- src/format/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index 1a3145f..e9b9ac9 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -814,8 +814,7 @@ pub fn path_is_legal_component(path: &Path) -> bool { /// Assert sure the path consists only of [`Normal`](std::path::Component::Normal) components. /// -/// Returns an [`io::Error`](std::io::Error) of type [`Other`](std::io::ErrorKind::Other) if that's -/// not the case. +/// Returns an [`io::Error`] of type [`Other`](std::io::ErrorKind::Other) if that's not the case. pub fn check_file_name(path: &Path) -> io::Result<()> { if !path_is_legal_component(path) { io_bail!("invalid file name in archive: {:?}", path); -- 2.39.5