aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2023-05-24 06:55:47 -0700
committerAndrew G. Morgan <morgan@kernel.org>2023-05-24 06:55:47 -0700
commit8785077d6c69482a2814a2f771aaada2f6ea1894 (patch)
treee0e29b1ee8345a861d0d21201c234499bc51588a
parent8bed80f9b54b7bd2a1ee1fdc2124a094733c9356 (diff)
downloadlibcap-8785077d6c69482a2814a2f771aaada2f6ea1894.tar.gz
Tidy up the overview example for the "cap" package.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--cap/cap.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cap/cap.go b/cap/cap.go
index 784bf65..df32436 100644
--- a/cap/cap.go
+++ b/cap/cap.go
@@ -17,7 +17,8 @@
//
// // Read and display the capabilities of the running process
// c := cap.GetProc()
-// log.Printf("this process has these caps:", c)
+// iab := cap.IABGetProc()
+// log.Printf("this process has these caps: %q [%v]", c, iab)
//
// // Drop any privilege a process might have (including for root,
// // but note root 'owns' a lot of system files so a cap-limited