mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
use proper "Deprecated" comment format
Found using https://go-critic.github.io/overview#deprecatedComment-ref
This commit is contained in:
committed by
Kirill Danshin
parent
7796335d5f
commit
5c41b44ca7
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user