Commit 2156961b authored by Rob Pike's avatar Rob Pike

fix build. changing var to const, which it should be anyway,

implicitly works around 6g bug.

R=rsc
OCL=33953
CL=33953
parent 94e69155
...@@ -223,7 +223,7 @@ func main() { ...@@ -223,7 +223,7 @@ func main() {
} }
fmt.Printf( fmt.Printf(
"// Generated by running\n" "// Generated by running\n"
"// maketables --tables=%t --url=%s\n" "// maketables --tables=%s --url=%s\n"
"// DO NOT EDIT\n\n" "// DO NOT EDIT\n\n"
"package unicode\n\n", "package unicode\n\n",
*tables, *tables,
...@@ -231,7 +231,7 @@ func main() { ...@@ -231,7 +231,7 @@ func main() {
); );
fmt.Println("// Version is the Unicode edition from which the tables are derived."); fmt.Println("// Version is the Unicode edition from which the tables are derived.");
fmt.Printf("var Version = %q\n\n", version()); fmt.Printf("const Version = %q\n\n", version());
if *tables == "all" { if *tables == "all" {
fmt.Println("// Tables is the set of Unicode data tables."); fmt.Println("// Tables is the set of Unicode data tables.");
......
// Generated by running // Generated by running
// maketables --tables=%t(string)% --url=http://www.unicode.org/Public/5.1.0/ucd/UnicodeData.txt // maketables --tables=all --url=http://www.unicode.org/Public/5.1.0/ucd/UnicodeData.txt
// DO NOT EDIT // DO NOT EDIT
package unicode package unicode
// Version is the Unicode edition from which the tables are derived. // Version is the Unicode edition from which the tables are derived.
var Version = "5.1.0" const Version = "5.1.0"
// Tables is the set of Unicode data tables. // Tables is the set of Unicode data tables.
var Tables = map[string] []Range { var Tables = map[string] []Range {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment