util/groupmember: fix typo of package's name in its package doc
And canonicalize a func comment while I'm here.
// 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
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)
}
