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 <bradfitz@tailscale.com>
pull/2999/head
Brad Fitzpatrick 3 years ago
parent cb4a2c00d1
commit 2a0d3f72c5

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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. // local system.
package groupmember package groupmember
@ -13,9 +13,8 @@ import (
var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS) var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS)
// IsMemberOfGroup verifies if the provided user is member of the provided // IsMemberOfGroup reports whether the provided user is a member of
// system group. // the provided system group.
// If verification fails, an error is returned.
func IsMemberOfGroup(group, userName string) (bool, error) { func IsMemberOfGroup(group, userName string) (bool, error) {
return isMemberOfGroup(group, userName) return isMemberOfGroup(group, userName)
} }

Loading…
Cancel
Save