go/src/bufio
Ian Lance Taylor 290ec2d92b bufio: don't do empty Write at start of WriteTo
The empty Write will cause the wrong thing to happen when using
io.Copy to copy to a package-based stream.

Fixes #71424

Change-Id: I046a27539447182692ac76a8bdd422327345dd8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/644535
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
2025-02-06 17:08:54 -08:00
..
bufio.go bufio: don't do empty Write at start of WriteTo 2025-02-06 17:08:54 -08:00
bufio_test.go bufio: don't do empty Write at start of WriteTo 2025-02-06 17:08:54 -08:00
example_test.go bufio: add example for ReadFrom and remove unused code 2024-11-01 21:52:12 +00:00
export_test.go
net_test.go bufio: don't do empty Write at start of WriteTo 2025-02-06 17:08:54 -08:00
scan.go bufio: allow terminating Scanner early cleanly without a final token or an error 2023-10-23 09:06:30 +00:00
scan_test.go all: clean unnecessary casts for test files 2023-09-22 16:22:42 +00:00