From a2defd1a21f66b2e4e5a6462349424f7d995ff3c Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 18 Oct 2023 16:34:35 +0200 Subject: [PATCH] uucore: remove incorrect comment --- src/uucore/src/lib/features/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uucore/src/lib/features/fs.rs b/src/uucore/src/lib/features/fs.rs index 97238b10d..84ed006d9 100644 --- a/src/uucore/src/lib/features/fs.rs +++ b/src/uucore/src/lib/features/fs.rs @@ -435,6 +435,7 @@ pub fn canonicalize>( } #[cfg(not(unix))] +/// Display the permissions of a file pub fn display_permissions(metadata: &fs::Metadata, display_file_type: bool) -> String { let write = if metadata.permissions().readonly() { '-' @@ -459,7 +460,6 @@ pub fn display_permissions(metadata: &fs::Metadata, display_file_type: bool) -> #[cfg(unix)] /// Display the permissions of a file -/// On non unix like system, just show '----------' pub fn display_permissions(metadata: &fs::Metadata, display_file_type: bool) -> String { let mode: mode_t = metadata.mode() as mode_t; display_permissions_unix(mode, display_file_type)