aboutsummaryrefslogtreecommitdiff
path: root/src/bufio/bufio_test.go
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2024-11-01 17:55:50 +0800
committerGopher Robot <gobot@golang.org>2024-11-01 21:52:12 +0000
commit2fd2718f6b64000fa25e0c5d1ee48aa1426d5a6f (patch)
tree48f2f42520ea9a5b52827af285c730710560a5ad /src/bufio/bufio_test.go
parent65235e137f3bd2807ec2e53dae5b6dd13e5ac4f6 (diff)
downloadgo-2fd2718f6b64000fa25e0c5d1ee48aa1426d5a6f.tar.xz
bufio: add example for ReadFrom and remove unused code
Change-Id: Ia4fbb436ca573b1820f2b4d06d2332f588334768 Reviewed-on: https://go-review.googlesource.com/c/go/+/624357 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/bufio/bufio_test.go')
-rw-r--r--src/bufio/bufio_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bufio/bufio_test.go b/src/bufio/bufio_test.go
index 60752d38f6..63dd2ea432 100644
--- a/src/bufio/bufio_test.go
+++ b/src/bufio/bufio_test.go
@@ -939,7 +939,6 @@ func (t *testReader) Read(buf []byte) (n int, err error) {
}
func testReadLine(t *testing.T, input []byte) {
- //for stride := 1; stride < len(input); stride++ {
for stride := 1; stride < 2; stride++ {
done := 0
reader := testReader{input, stride}