1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:04:45 -07:00

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

implicitly works around 6g bug.

R=rsc
OCL=33953
CL=33953
This commit is contained in:
Rob Pike 2009-08-27 09:58:43 -07:00
parent 94e691552f
commit 2156961bb7
2 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ func main() {
}
fmt.Printf(
"// Generated by running\n"
"// maketables --tables=%t --url=%s\n"
"// maketables --tables=%s --url=%s\n"
"// DO NOT EDIT\n\n"
"package unicode\n\n",
*tables,
@ -231,7 +231,7 @@ func main() {
);
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" {
fmt.Println("// Tables is the set of Unicode data tables.");

View File

@ -1,11 +1,11 @@
// 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
package unicode
// 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.
var Tables = map[string] []Range {