]> Cypherpunks repositories - gostls13.git/commit
strings: fix off-by-one error in test go1.3beta1
authorRui Ueyama <ruiu@google.com>
Tue, 22 Apr 2014 00:00:27 +0000 (17:00 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Apr 2014 00:00:27 +0000 (17:00 -0700)
commit7ff8e90eb7ceb2016aa9fc736febd8a5902ec65e
treee5a384568d92c7959f0f328c4a93edc673407d27
parent2653386ce8dfd497fb9b8f65bc75ef9adf8e7b58
strings: fix off-by-one error in test

Previously it would panic because of out-of-bound access
if s1 is longer than s2.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/90110043
src/pkg/strings/strings_test.go