]> Cypherpunks repositories - gostls13.git/commitdiff
fix build. changing var to const, which it should be anyway,
authorRob Pike <r@golang.org>
Thu, 27 Aug 2009 16:58:43 +0000 (09:58 -0700)
committerRob Pike <r@golang.org>
Thu, 27 Aug 2009 16:58:43 +0000 (09:58 -0700)
implicitly works around 6g bug.

R=rsc
OCL=33953
CL=33953

src/pkg/unicode/maketables.go
src/pkg/unicode/tables.go

index 976bedaf1e8b61b166f5363e96381df8260b37d6..36e67be1bcb7dc864af9f824efe84049ad86d134 100644 (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.");
index 9789dfe6571402e03f3d92eaacb9254cdfa84af2..61baaa7618e62d9b2d3124f919780bccd8e69eba 100644 (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 {