Skip to content

Commit 087616b

Browse files
dmitshurgopherbot
authored andcommitted
transform: fix %q verb use with wrong type
Caught early by the improved vet check gated behind the 1.26 language version combined with a tiplang builder that tests with 1.26 language version. Change-Id: If22c0f81d35d7266f05bf5481439db46ea889b25 Cq-Include-Trybots: luci.golang.try:x_text-gotip-linux-amd64-tiplang Reviewed-on: https://go-review.googlesource.com/c/text/+/725061 Auto-Submit: Alan Donovan <adonovan@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Alan Donovan <adonovan@google.com>
1 parent 16f85a7 commit 087616b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transform/transform_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ func TestDiscard(t *testing.T) {
733733
for i, tc := range testCases {
734734
nDst, nSrc, err := Discard.Transform(make([]byte, tc.dstSize), []byte(tc.str), true)
735735
if nDst != 0 || nSrc != len(tc.str) || err != nil {
736-
t.Errorf("%d:\ngot %q, %d, %v\nwant 0, %d, nil", i, nDst, nSrc, err, len(tc.str))
736+
t.Errorf("%d:\ngot %d, %d, %v\nwant 0, %d, nil", i, nDst, nSrc, err, len(tc.str))
737737
}
738738
}
739739
}

0 commit comments

Comments
 (0)