mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
bytes: fix typos
LGTM=mikioh.mikioh R=golang-codereviews, mikioh.mikioh CC=golang-codereviews https://golang.org/cl/94240045
This commit is contained in:
parent
aed9762638
commit
cdabca325e
1 changed files with 3 additions and 3 deletions
|
|
@ -1144,7 +1144,7 @@ func TestEqualFold(t *testing.T) {
|
||||||
func TestBufferGrowNegative(t *testing.T) {
|
func TestBufferGrowNegative(t *testing.T) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := recover(); err == nil {
|
if err := recover(); err == nil {
|
||||||
t.Fatal("Grow(-1) should have paniced")
|
t.Fatal("Grow(-1) should have panicked")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
var b Buffer
|
var b Buffer
|
||||||
|
|
@ -1154,7 +1154,7 @@ func TestBufferGrowNegative(t *testing.T) {
|
||||||
func TestBufferTruncateNegative(t *testing.T) {
|
func TestBufferTruncateNegative(t *testing.T) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := recover(); err == nil {
|
if err := recover(); err == nil {
|
||||||
t.Fatal("Truncate(-1) should have paniced")
|
t.Fatal("Truncate(-1) should have panicked")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
var b Buffer
|
var b Buffer
|
||||||
|
|
@ -1164,7 +1164,7 @@ func TestBufferTruncateNegative(t *testing.T) {
|
||||||
func TestBufferTruncateOutOfRange(t *testing.T) {
|
func TestBufferTruncateOutOfRange(t *testing.T) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := recover(); err == nil {
|
if err := recover(); err == nil {
|
||||||
t.Fatal("Truncate(20) should have paniced")
|
t.Fatal("Truncate(20) should have panicked")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
var b Buffer
|
var b Buffer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue