summaryrefslogtreecommitdiff
path: root/src/pkg/json/struct.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-09-01 11:06:28 -0700
committerRob Pike <r@golang.org>2009-09-01 11:06:28 -0700
commit590a332ef8085b8d06bce352c16fff2187050cfa (patch)
tree3b1e41c8ca4c0ccb7e9c7a442dd2c021c5c60ace /src/pkg/json/struct.go
parent305d44c35460e3f003a543b619e638d58458840e (diff)
downloadgolang-590a332ef8085b8d06bce352c16fff2187050cfa.tar.gz
make ToUpper, ToLower etc. handle unicode properly.
Change their names too. R=rsc DELTA=206 (123 added, 2 deleted, 81 changed) OCL=34170 CL=34194
Diffstat (limited to 'src/pkg/json/struct.go')
-rw-r--r--src/pkg/json/struct.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go
index 99312e9c4..49766bebe 100644
--- a/src/pkg/json/struct.go
+++ b/src/pkg/json/struct.go
@@ -188,7 +188,7 @@ func (b *_StructBuilder) Key(k string) Builder {
}
// Again, case-insensitive.
for i := 0; i < t.NumField(); i++ {
- if strings.LowerASCII(t.Field(i).Name) == k {
+ if strings.ToLower(t.Field(i).Name) == k {
return &_StructBuilder{ v.Field(i) }
}
}