]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: correct message in test log
authorGabriel Aszalos <gabriel.aszalos@gmail.com>
Wed, 20 Sep 2017 09:01:32 +0000 (11:01 +0200)
committerIan Lance Taylor <iant@golang.org>
Wed, 20 Sep 2017 12:46:54 +0000 (12:46 +0000)
Change-Id: Ib731874b9a37ff141e4305d8ccfdf7c165155da6
Reviewed-on: https://go-review.googlesource.com/64930
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/bytes/buffer_test.go

index dcfbfced926c0db80dbfa8a5e49f6ceaa2e1d760..597dd130928d8f356c408f310daa705a67b29047 100644 (file)
@@ -142,7 +142,7 @@ func TestBasicOperations(t *testing.T) {
 
                n, err = buf.Write([]byte(data[2:26]))
                if n != 24 {
-                       t.Errorf("wrote 25 bytes, but n == %d", n)
+                       t.Errorf("wrote 24 bytes, but n == %d", n)
                }
                check(t, "TestBasicOperations (6)", &buf, string(data[0:26]))