From 2a0d3f72c55bb5b3b2a9bd7c836fc6294de1762b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 5 Oct 2021 15:21:18 -0700 Subject: [PATCH] util/groupmember: fix typo of package's name in its package doc And canonicalize a func comment while I'm here. Signed-off-by: Brad Fitzpatrick --- util/groupmember/groupmember.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/util/groupmember/groupmember.go b/util/groupmember/groupmember.go index 9936c30c3..2a9b5d24e 100644 --- a/util/groupmember/groupmember.go +++ b/util/groupmember/groupmember.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package groupmemeber verifies group membership of the provided user on the +// Package groupmember verifies group membership of the provided user on the // local system. package groupmember @@ -13,9 +13,8 @@ var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS) -// IsMemberOfGroup verifies if the provided user is member of the provided -// system group. -// If verification fails, an error is returned. +// IsMemberOfGroup reports whether the provided user is a member of +// the provided system group. func IsMemberOfGroup(group, userName string) (bool, error) { return isMemberOfGroup(group, userName) }