From c4a74c22319b2e01dabdb845d817b7143e197d25 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 21 Jan 2022 23:13:54 +0100 Subject: [PATCH] Fix doc warnings in entries.rs (#2901) --- src/uucore/src/lib/features/entries.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uucore/src/lib/features/entries.rs b/src/uucore/src/lib/features/entries.rs index df3ab7b06..60fa6a3da 100644 --- a/src/uucore/src/lib/features/entries.rs +++ b/src/uucore/src/lib/features/entries.rs @@ -52,7 +52,7 @@ use std::sync::Mutex; use once_cell::sync::Lazy; extern "C" { - /// From: https://man7.org/linux/man-pages/man3/getgrouplist.3.html + /// From: `` /// > The getgrouplist() function scans the group database to obtain /// > the list of groups that user belongs to. fn getgrouplist( @@ -63,7 +63,7 @@ extern "C" { ) -> c_int; } -/// From: https://man7.org/linux/man-pages/man2/getgroups.2.html +/// From: `` /// > getgroups() returns the supplementary group IDs of the calling /// > process in list. /// > If size is zero, list is not modified, but the total number of @@ -110,7 +110,7 @@ pub fn get_groups() -> IOResult> { /// to the first entry in the returned Vector. This might be necessary /// for `id --groups --real` if `gid` and `egid` are not equal. /// -/// From: https://www.man7.org/linux/man-pages/man3/getgroups.3p.html +/// From: `` /// > As implied by the definition of supplementary groups, the /// > effective group ID may appear in the array returned by /// > getgroups() or it may be returned only by getegid(). Duplication @@ -194,7 +194,7 @@ impl Passwd { /// This is a wrapper function for `libc::getgrouplist`. /// - /// From: https://man7.org/linux/man-pages/man3/getgrouplist.3.html + /// From: `` /// > If the number of groups of which user is a member is less than or /// > equal to *ngroups, then the value *ngroups is returned. /// > If the user is a member of more than *ngroups groups, then