From 5c41b44ca750470fda05a02eb0beaeb2153103a9 Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Tue, 11 Sep 2018 21:26:03 +0300 Subject: [PATCH] use proper "Deprecated" comment format Found using https://go-critic.github.io/overview#deprecatedComment-ref --- bytebuffer.go | 2 +- bytesconv.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bytebuffer.go b/bytebuffer.go index f965172..0acbeac 100644 --- a/bytebuffer.go +++ b/bytebuffer.go @@ -12,7 +12,7 @@ import ( // // Use AcquireByteBuffer for obtaining an empty byte buffer. // -// ByteBuffer is deprecated. Use github.com/valyala/bytebufferpool instead. +// Deprecated: use github.com/valyala/bytebufferpool instead. type ByteBuffer bytebufferpool.ByteBuffer // Write implements io.Writer - it appends p to ByteBuffer.B diff --git a/bytesconv.go b/bytesconv.go index 01633ba..6292957 100644 --- a/bytesconv.go +++ b/bytesconv.go @@ -440,7 +440,7 @@ func appendQuotedPath(dst, src []byte) []byte { // This function has no performance benefits comparing to string(b) == s. // It is left here for backwards compatibility only. // -// This function is deprecated and may be deleted soon. +// Deprecated: may be deleted soon. func EqualBytesStr(b []byte, s string) bool { return string(b) == s } @@ -450,7 +450,7 @@ func EqualBytesStr(b []byte, s string) bool { // This function has no performance benefits comparing to append(dst, src...). // It is left here for backwards compatibility only. // -// This function is deprecated and may be deleted soon. +// Deprecated: may be deleted soon. func AppendBytesStr(dst []byte, src string) []byte { return append(dst, src...) }