go.tools/present: fix printf bug found by go vet

LGTM=iant
R=adg, iant
CC=golang-codereviews
https://golang.org/cl/93450044
This commit is contained in:
Rob Pike 2014-05-16 14:29:34 -07:00
parent 87a30fd93f
commit 31d5e8dca1
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func renderLink(href, text string) string {
// Open links in new window only when their url is absolute. // Open links in new window only when their url is absolute.
target := "_blank" target := "_blank"
if u, err := url.Parse(href); err != nil { if u, err := url.Parse(href); err != nil {
log.Println("rendernLink parsing url: %v", err) log.Println("rendernLink parsing url:", err)
} else if !u.IsAbs() || u.Scheme == "javascript" { } else if !u.IsAbs() || u.Scheme == "javascript" {
target = "_self" target = "_self"
} }