diff options
author | Rob Pike <r@golang.org> | 2009-08-27 09:58:43 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-08-27 09:58:43 -0700 |
commit | 40ccd463b86d9b794c0cdb7354ac0f29fe9033bf (patch) | |
tree | 8db10a93c2bd3c5c4adfd770235255f427d30ebb | |
parent | ea7b5fd47bc335a44f36fe5d8cd7e0f1b8d75822 (diff) | |
download | golang-40ccd463b86d9b794c0cdb7354ac0f29fe9033bf.tar.gz |
fix build. changing var to const, which it should be anyway,
implicitly works around 6g bug.
R=rsc
OCL=33953
CL=33953
-rw-r--r-- | src/pkg/unicode/maketables.go | 4 | ||||
-rw-r--r-- | src/pkg/unicode/tables.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/unicode/maketables.go b/src/pkg/unicode/maketables.go index 976bedaf1..36e67be1b 100644 --- a/src/pkg/unicode/maketables.go +++ b/src/pkg/unicode/maketables.go @@ -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."); diff --git a/src/pkg/unicode/tables.go b/src/pkg/unicode/tables.go index 9789dfe65..61baaa761 100644 --- a/src/pkg/unicode/tables.go +++ b/src/pkg/unicode/tables.go @@ -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 { |