summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2021-09-23 20:46:31 -0700
committerAndrew G. Morgan <morgan@kernel.org>2021-09-23 20:46:31 -0700
commitf8b754967348052ca92c6d2c95551cbbb1e1d387 (patch)
tree2bbac9e83d1de39fae8f6c91838db57232d3d730
parentdba6efc51b2cb4ee97e34575d298cdbb58cfed68 (diff)
downloadlibcap2-f8b754967348052ca92c6d2c95551cbbb1e1d387.tar.gz
Update example to avoid reference to deprecated Compare function.
In 2.54 (*Set).Compare() was deprecated in favor of (*Set).Cf(), so update the top level comment to reflect the preferred API. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--cap/cap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cap/cap.go b/cap/cap.go
index d4b241e..5bbfea3 100644
--- a/cap/cap.go
+++ b/cap/cap.go
@@ -28,7 +28,7 @@
// log.Fatalf("failed to drop privilege: %q -> %q: %v", old, empty, err)
// }
// now := cap.GetProc()
-// if cf, _ := now.Compare(empty); cf != 0 {
+// if cf, _ := now.Cf(empty); cf != 0 {
// log.Fatalf("failed to fully drop privilege: have=%q, wanted=%q", now, empty)
// }
//