diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2016-04-05 11:22:53 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-05-06 00:10:41 +0000 |
| commit | acc757f678a42ba1ffbf8bb9886de4fe080302de (patch) | |
| tree | f412c541e65290080925060d7d748ec7ef4f4ecb /src/bufio/bufio_test.go | |
| parent | 6db98a3c51549eb5e1e481e9bca6ede7e8e15f54 (diff) | |
| download | go-acc757f678a42ba1ffbf8bb9886de4fe080302de.tar.xz | |
all: use SeekStart, SeekCurrent, SeekEnd
CL/19862 (f79b50b8d5bc159561c1dcf7c17e2a0db96a9a11) recently introduced the constants
SeekStart, SeekCurrent, and SeekEnd to the io package. We should use these constants
consistently throughout the code base.
Updates #15269
Change-Id: If7fcaca7676e4a51f588528f5ced28220d9639a2
Reviewed-on: https://go-review.googlesource.com/22097
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Joe Tsai <joetsai@digital-static.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/bufio/bufio_test.go')
| -rw-r--r-- | src/bufio/bufio_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bufio/bufio_test.go b/src/bufio/bufio_test.go index d769a6aaa9..858048696e 100644 --- a/src/bufio/bufio_test.go +++ b/src/bufio/bufio_test.go @@ -1475,7 +1475,7 @@ func BenchmarkReaderWriteToOptimal(b *testing.B) { b.Fatal("ioutil.Discard doesn't support ReaderFrom") } for i := 0; i < b.N; i++ { - r.Seek(0, 0) + r.Seek(0, io.SeekStart) srcReader.Reset(onlyReader{r}) n, err := srcReader.WriteTo(ioutil.Discard) if err != nil { |
