mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
throughout: fix broken calls to Printf etc.
I have written a tool to verify Printf calls, and although it's not ready to be reviewed yet it's already uncovered a spate of problems in the repository. I'm sending this CL to break the changes into pieces; as the tool improves it will find more, I'm sure. R=rsc CC=golang-dev https://golang.org/cl/3427043
This commit is contained in:
parent
ab7884da7e
commit
1ce6245d6c
25 changed files with 114 additions and 114 deletions
|
|
@ -329,7 +329,7 @@ func printCategories() {
|
|||
for k, _ := range category {
|
||||
fmt.Printf("\t%q: %s,\n", k, k)
|
||||
}
|
||||
fmt.Printf("}\n\n")
|
||||
fmt.Print("}\n\n")
|
||||
}
|
||||
|
||||
decl := make(sort.StringArray, len(list))
|
||||
|
|
@ -377,7 +377,7 @@ func printCategories() {
|
|||
for _, d := range decl {
|
||||
fmt.Print(d)
|
||||
}
|
||||
fmt.Println(")\n")
|
||||
fmt.Print(")\n\n")
|
||||
}
|
||||
|
||||
type Op func(code int) bool
|
||||
|
|
@ -597,7 +597,7 @@ func printScriptOrProperty(doProps bool) {
|
|||
for k, _ := range table {
|
||||
fmt.Printf("\t%q: %s,\n", k, k)
|
||||
}
|
||||
fmt.Printf("}\n\n")
|
||||
fmt.Print("}\n\n")
|
||||
}
|
||||
|
||||
decl := make(sort.StringArray, len(list))
|
||||
|
|
@ -618,14 +618,14 @@ func printScriptOrProperty(doProps bool) {
|
|||
for _, s := range ranges {
|
||||
fmt.Printf(format, s.Lo, s.Hi, s.Stride)
|
||||
}
|
||||
fmt.Printf("}\n\n")
|
||||
fmt.Print("}\n\n")
|
||||
}
|
||||
decl.Sort()
|
||||
fmt.Println("var (")
|
||||
for _, d := range decl {
|
||||
fmt.Print(d)
|
||||
}
|
||||
fmt.Println(")\n")
|
||||
fmt.Print(")\n\n")
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
@ -792,7 +792,7 @@ func printCases() {
|
|||
}
|
||||
prevState = state
|
||||
}
|
||||
fmt.Printf("}\n")
|
||||
fmt.Print("}\n")
|
||||
}
|
||||
|
||||
func printCaseRange(lo, hi *caseState) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue