Use copy instead of assignment

This commit is contained in:
M. Mert Yildiran 2022-05-12 13:32:18 +03:00
parent 5aeb449a34
commit 11e535cd27
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -83,7 +83,7 @@ func (reader *tcpReader) isProtocolIdentified() bool {
}
func (reader *tcpReader) rewind() {
reader.data = reader.pastData
copy(reader.data, reader.pastData)
}
func (reader *tcpReader) Read(p []byte) (int, error) {