summaryrefslogtreecommitdiff
path: root/src/lib/go/ast/ast.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/go/ast/ast.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/go/ast/ast.go')
-rw-r--r--src/lib/go/ast/ast.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/go/ast/ast.go b/src/lib/go/ast/ast.go
index 6045c945f..e6c3d850f 100644
--- a/src/lib/go/ast/ast.go
+++ b/src/lib/go/ast/ast.go
@@ -426,7 +426,7 @@ func (x *ChanType) Visit(v ExprVisitor) { v.DoChanType(x); }
// IsExported returns whether name is an exported Go symbol
// (i.e., whether it begins with an uppercase letter).
func IsExported(name string) bool {
- ch, len := utf8.DecodeRuneInString(name, 0);
+ ch, len := utf8.DecodeRuneInString(name);
return unicode.IsUpper(ch);
}