1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

bufio: Fixed call to Fatal, should be Fatalf.

LGTM=iant
R=golang-codereviews, iant, bradfitz
CC=golang-codereviews
https://golang.org/cl/107390044
This commit is contained in:
Timo Truyts 2014-07-02 07:04:01 -07:00 committed by Ian Lance Taylor
parent ab341e58bc
commit 22c3f67cd6

View File

@ -413,9 +413,9 @@ func TestScanWordsExcessiveWhiteSpace(t *testing.T) {
scanner.MaxTokenSize(smallMaxTokenSize)
scanner.Split(ScanWords)
if !scanner.Scan() {
t.Fatal("scan failed: %v", scanner.Err())
t.Fatalf("scan failed: %v", scanner.Err())
}
if token := scanner.Text(); token != word {
t.Fatal("unexpected token: %v", token)
t.Fatalf("unexpected token: %v", token)
}
}