diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2021-09-10 16:02:28 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2021-09-10 16:02:28 -0700 |
commit | e7297c1925d827d3932dc7ed96554a1d94c17dd7 (patch) | |
tree | 1a72c0636389200d7843aa645fe749e26ffdf0fa /cap/iab.go | |
parent | 39067301976057bc8915e4025f6715432a5b0c74 (diff) | |
download | libcap-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.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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() } |