Fix PacketConnReader typo in DecorateReader docs (#1189)
This commit is contained in:
parent
0e1c4e69dd
commit
fa528cceb7
|
@ -180,8 +180,8 @@ func (dr defaultReader) ReadPacketConn(conn net.PacketConn, timeout time.Duratio
|
||||||
|
|
||||||
// DecorateReader is a decorator hook for extending or supplanting the functionality of a Reader.
|
// DecorateReader is a decorator hook for extending or supplanting the functionality of a Reader.
|
||||||
// Implementations should never return a nil Reader.
|
// Implementations should never return a nil Reader.
|
||||||
// Readers should also implement the optional ReaderPacketConn interface.
|
// Readers should also implement the optional PacketConnReader interface.
|
||||||
// ReaderPacketConn is required to use a generic net.PacketConn.
|
// PacketConnReader is required to use a generic net.PacketConn.
|
||||||
type DecorateReader func(Reader) Reader
|
type DecorateReader func(Reader) Reader
|
||||||
|
|
||||||
// DecorateWriter is a decorator hook for extending or supplanting the functionality of a Writer.
|
// DecorateWriter is a decorator hook for extending or supplanting the functionality of a Writer.
|
||||||
|
|
Loading…
Reference in New Issue