aboutsummaryrefslogtreecommitdiff
path: root/cap/iab.go
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2021-09-10 16:02:28 -0700
committerAndrew G. Morgan <morgan@kernel.org>2021-09-10 16:02:28 -0700
commite7297c1925d827d3932dc7ed96554a1d94c17dd7 (patch)
tree1a72c0636389200d7843aa645fe749e26ffdf0fa /cap/iab.go
parent39067301976057bc8915e4025f6715432a5b0c74 (diff)
downloadlibcap-e7297c1925d827d3932dc7ed96554a1d94c17dd7.tar.gz
More standard deprecation comment for cap.Compare and cap.IABInit
Based on what I see on go.dev, there seems to be some preferred comment style for deprecating a function. Use it to help spread the word. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'cap/iab.go')
-rw-r--r--cap/iab.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/cap/iab.go b/cap/iab.go
index 1be921c..90fc436 100644
--- a/cap/iab.go
+++ b/cap/iab.go
@@ -79,7 +79,17 @@ func NewIAB() *IAB {
}
}
-// IABInit is a deprecated alias for the NewIAB function.
+// IABInit allocates a new IAB tuple.
+//
+// Deprecated: Replace with NewIAB.
+//
+// Example, replace this:
+//
+// iab := IABInit()
+//
+// with this:
+//
+// iab := NewIAB()
func IABInit() *IAB {
return NewIAB()
}