summaryrefslogtreecommitdiff
path: root/src/lib/json/parse.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-11 14:10:34 -0700
committerRuss Cox <rsc@golang.org>2009-05-11 14:10:34 -0700
commit87545816058bcaa088750e5b4a1512612254f847 (patch)
tree979d1eb0ea7a8087a22d52e9e01b689950238d7f /src/lib/json/parse.go
parent5044afd9d31effe5591342bfdb1c7414b969e7ca (diff)
downloadgolang-87545816058bcaa088750e5b4a1512612254f847.tar.gz
change utf8.FullRuneInString and utf8.DecodeRuneInString
to use single string argument instead of string, index. R=r DELTA=136 (9 added, 7 deleted, 120 changed) OCL=28642 CL=28644
Diffstat (limited to 'src/lib/json/parse.go')
-rw-r--r--src/lib/json/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/json/parse.go b/src/lib/json/parse.go
index 1069e1183..e33b9dbc1 100644
--- a/src/lib/json/parse.go
+++ b/src/lib/json/parse.go
@@ -114,7 +114,7 @@ func Unquote(s string) (t string, ok bool) {
w++;
// Coerce to well-formed UTF-8.
default:
- rune, size := utf8.DecodeRuneInString(s, r);
+ rune, size := utf8.DecodeRuneInString(s[r:len(s)]);
r += size;
w += utf8.EncodeRune(rune, b[w:len(b)]);
}