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:
parent
ab341e58bc
commit
22c3f67cd6
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user