Skip to content

Commit 8cc6a32

Browse files
griesemerandybons
authored andcommitted
[release-branch.go1.10] godoc: fix test failure
Adjust code to satisfy vet. Change-Id: I532b4d988eb29b413520de60b8520d9e100b42c9 Reviewed-on: https://go-review.googlesource.com/118557 Run-TryBot: Robert Griesemer <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> (cherry picked from commit 02fcd6a) Reviewed-on: https://go-review.googlesource.com/126835 Run-TryBot: Andrew Bonventre <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]>
1 parent 0d7f9d6 commit 8cc6a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godoc/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (p *Presentation) code(file string, arg ...interface{}) (s string, err erro
9090
command = fmt.Sprintf("code %q %s %s", file, stringFor(arg[0]), stringFor(arg[1]))
9191
text = p.Corpus.multipleLines(file, text, arg[0], arg[1])
9292
default:
93-
return "", fmt.Errorf("incorrect code invocation: code %q %q", file, arg)
93+
return "", fmt.Errorf("incorrect code invocation: code %q [%v, ...] (%d arguments)", file, arg[0], len(arg))
9494
}
9595
// Trim spaces from output.
9696
text = strings.Trim(text, "\n")

0 commit comments

Comments
 (0)