go/src/bytes
Dave Russell 23b687eccb bytes: re-slice buffer to its previous length after call to grow()
Fixes #25435

The added test fails without the re-slice and passes with it.

Change-Id: I5ebc2a737285eb116ecc5938d8bf49050652830f
GitHub-Last-Rev: 454ddad7df
GitHub-Pull-Request: golang/go#25436
Reviewed-on: https://go-review.googlesource.com/113495
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-05-29 19:46:33 +00:00
..
boundary_test.go bytes: reduce work in IndexNearPageBoundary test 2017-11-04 11:09:49 +00:00
buffer.go bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
buffer_test.go bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
bytes.go bytes, strings: improve EqualFold fast version for ASCII 2018-05-01 18:52:19 +00:00
bytes_decl.go internal/bytealg: move compare functions to bytealg 2018-03-04 17:49:39 +00:00
bytes_test.go internal/bytealg: move Count to bytealg 2018-03-04 17:49:25 +00:00
compare_test.go
example_test.go bytes, strings: restore O(1) behavior of IndexAny(s, "") and LastIndexAny(s, "") 2017-11-15 21:26:05 +00:00
export_test.go internal/bytealg: move Count to bytealg 2018-03-04 17:49:25 +00:00
reader.go bytes: add documentation to reader methods 2017-09-21 18:57:04 +00:00
reader_test.go bytes: improve test readability 2017-09-20 13:41:03 +00:00