diff options
Diffstat (limited to 'src/lib/go/ast/ast.go')
| -rw-r--r-- | src/lib/go/ast/ast.go | 2 |
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); } |
