Fix PacketConnReader typo in DecorateReader docs (#1189)

This commit is contained in:
Tom Thorogood 2020-10-25 02:26:19 +10:30 committed by GitHub
parent 0e1c4e69dd
commit fa528cceb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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.
// Implementations should never return a nil Reader.
// Readers should also implement the optional ReaderPacketConn interface.
// ReaderPacketConn is required to use a generic net.PacketConn.
// Readers should also implement the optional PacketConnReader interface.
// PacketConnReader is required to use a generic net.PacketConn.
type DecorateReader func(Reader) Reader
// DecorateWriter is a decorator hook for extending or supplanting the functionality of a Writer.