~jpastuszek/file-owner

ef34533b9bc6a2030a68e0809b0cd61f9aecabc8 — Jakub Pastuszek 1 year, 5 months ago c557532 0.1.0
fixed doc string
1 files changed, 2 insertions(+), 2 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +2 -2
@@ 119,7 119,7 @@ impl Owner {
        self.0.as_raw().try_into().unwrap()
    }

    /// Gets name.
    /// Gets name if assigned to UID.
    pub fn name(&self) -> Result<Option<String>, FileOwnerError> {
        Ok(User::from_uid(self.0)?.map(|u| u.name))
    }


@@ 169,7 169,7 @@ impl Group {
        self.0.as_raw().try_into().unwrap()
    }

    // Gets name.
    /// Gets name if assigned to GID.
    pub fn name(&self) -> Result<Option<String>, FileOwnerError> {
        Ok(NixGroup::from_gid(self.0)?.map(|u| u.name))
    }