mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
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>
This commit is contained in:
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 @@
|
|||||||
|
|
||||||
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…
Reference in New Issue
Block a user