mirror of
https://github.com/golang/go.git
synced 2025-05-16 04:44:39 +00:00
fmt: remove dead code
Also fix a typo in comment. R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5808043
This commit is contained in:
parent
8170d81f4f
commit
62bb39e2ba
@ -810,7 +810,7 @@ func TestMultiLine(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecursiveInt accepts an string matching %d.%d.%d....
|
// RecursiveInt accepts a string matching %d.%d.%d....
|
||||||
// and parses it into a linked list.
|
// and parses it into a linked list.
|
||||||
// It allows us to benchmark recursive descent style scanners.
|
// It allows us to benchmark recursive descent style scanners.
|
||||||
type RecursiveInt struct {
|
type RecursiveInt struct {
|
||||||
@ -826,7 +826,7 @@ func (r *RecursiveInt) Scan(state ScanState, verb rune) (err error) {
|
|||||||
next := new(RecursiveInt)
|
next := new(RecursiveInt)
|
||||||
_, err = Fscanf(state, ".%v", next)
|
_, err = Fscanf(state, ".%v", next)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == errors.New("input does not match format") || err == io.ErrUnexpectedEOF {
|
if err == io.ErrUnexpectedEOF {
|
||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user