mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
throughout: simplify two-variable ranges with unused second variable
R=golang-dev, gri CC=golang-dev https://golang.org/cl/3529041
This commit is contained in:
parent
14804a412b
commit
062406bc64
9 changed files with 10 additions and 10 deletions
|
|
@ -326,7 +326,7 @@ func printCategories() {
|
|||
if *tablelist == "all" {
|
||||
fmt.Println("// Categories is the set of Unicode data tables.")
|
||||
fmt.Println("var Categories = map[string] []Range {")
|
||||
for k, _ := range category {
|
||||
for k := range category {
|
||||
fmt.Printf("\t%q: %s,\n", k, k)
|
||||
}
|
||||
fmt.Print("}\n\n")
|
||||
|
|
@ -594,7 +594,7 @@ func printScriptOrProperty(doProps bool) {
|
|||
fmt.Println("// Scripts is the set of Unicode script tables.")
|
||||
fmt.Println("var Scripts = map[string] []Range {")
|
||||
}
|
||||
for k, _ := range table {
|
||||
for k := range table {
|
||||
fmt.Printf("\t%q: %s,\n", k, k)
|
||||
}
|
||||
fmt.Print("}\n\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue