1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:14:46 -07:00

unicode: fix comment about variable types

In both the web and command line tool,
the comment is shown after the declaration.
But in the code the comment is obviously before.
Make the text not refer to a specific order.

R=r, dsymonds
CC=golang-dev
https://golang.org/cl/6206094
This commit is contained in:
Russ Cox 2012-05-22 13:53:57 -04:00
parent fbaf59bf1e
commit 77f00e5e5a
2 changed files with 5 additions and 5 deletions

View File

@ -488,7 +488,7 @@ func printCategories() {
func(code rune) bool { return chars[code].category == name }) func(code rune) bool { return chars[code].category == name })
} }
decl.Sort() decl.Sort()
fmt.Println("// The following variables are of type *RangeTable:") fmt.Println("// These variables have type *RangeTable.")
fmt.Println("var (") fmt.Println("var (")
for _, d := range decl { for _, d := range decl {
fmt.Print(d) fmt.Print(d)
@ -771,7 +771,7 @@ func printScriptOrProperty(doProps bool) {
fmt.Print("}\n\n") fmt.Print("}\n\n")
} }
decl.Sort() decl.Sort()
fmt.Println("// The following variables are of type *RangeTable:") fmt.Println("// These variables have type *RangeTable.")
fmt.Println("var (") fmt.Println("var (")
for _, d := range decl { for _, d := range decl {
fmt.Print(d) fmt.Print(d)

View File

@ -2701,7 +2701,7 @@ var _Zs = &RangeTable{
}, },
} }
// The following variables are of type *RangeTable: // These variables have type *RangeTable.
var ( var (
Cc = _Cc // Cc is the set of Unicode characters in category Cc. Cc = _Cc // Cc is the set of Unicode characters in category Cc.
Cf = _Cf // Cf is the set of Unicode characters in category Cf. Cf = _Cf // Cf is the set of Unicode characters in category Cf.
@ -4054,7 +4054,7 @@ var _Yi = &RangeTable{
}, },
} }
// The following variables are of type *RangeTable: // These variables have type *RangeTable.
var ( var (
Arabic = _Arabic // Arabic is the set of Unicode characters in script Arabic. Arabic = _Arabic // Arabic is the set of Unicode characters in script Arabic.
Armenian = _Armenian // Armenian is the set of Unicode characters in script Armenian. Armenian = _Armenian // Armenian is the set of Unicode characters in script Armenian.
@ -5116,7 +5116,7 @@ var _White_Space = &RangeTable{
}, },
} }
// The following variables are of type *RangeTable: // These variables have type *RangeTable.
var ( var (
ASCII_Hex_Digit = _ASCII_Hex_Digit // ASCII_Hex_Digit is the set of Unicode characters with property ASCII_Hex_Digit. ASCII_Hex_Digit = _ASCII_Hex_Digit // ASCII_Hex_Digit is the set of Unicode characters with property ASCII_Hex_Digit.
Bidi_Control = _Bidi_Control // Bidi_Control is the set of Unicode characters with property Bidi_Control. Bidi_Control = _Bidi_Control // Bidi_Control is the set of Unicode characters with property Bidi_Control.