diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2020-07-09 23:30:22 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2020-07-09 23:30:22 -0700 |
commit | f4decbdedec8e45aa1b3eb3dd058d0365f679670 (patch) | |
tree | 37e1da4d476915a341602e63bb514867238b5ae7 /cap/flags.go | |
parent | dca9b22261f4837b0c81640ca3aa5133b95e0999 (diff) | |
download | libcap-f4decbdedec8e45aa1b3eb3dd058d0365f679670.tar.gz |
libcap/cap Go package documentation cleanup.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'cap/flags.go')
-rw-r--r-- | cap/flags.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cap/flags.go b/cap/flags.go index d19d0c2..b800a2d 100644 --- a/cap/flags.go +++ b/cap/flags.go @@ -133,7 +133,8 @@ func (c *Set) ClearFlag(vec Flag) error { // Compare returns 0 if c and d are identical in content. Otherwise, // this function returns a non-zero value of 3 independent bits: -// (differE ? 1:0) | (differP ? 2:0) | (differI ? 4:0). +// (differE ? 1:0) | (differP ? 2:0) | (differI ? 4:0). The Differs() +// function can be used to test for a difference in a specific Flag. func (c *Set) Compare(d *Set) (uint, error) { if c == nil || len(c.flat) == 0 || d == nil || len(d.flat) == 0 { return 0, ErrBadSet |