From 3619f1ea6a85b08f8c079b61115c567dd2e51f33 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 11 May 2009 14:10:34 -0700 Subject: 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 --- test/stringrange.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/stringrange.go') diff --git a/test/stringrange.go b/test/stringrange.go index 32ed1e5f02..6169e973b8 100644 --- a/test/stringrange.go +++ b/test/stringrange.go @@ -21,7 +21,7 @@ func main() { ok := true; cnum := 0; for i, c = range s { - rune, size := utf8.DecodeRuneInString(s, i); // check it another way + rune, size := utf8.DecodeRuneInString(s[i:len(s)]); // check it another way if i != offset { fmt.Printf("unexpected offset %d not %d\n", i, offset); ok = false; -- cgit v1.2.1