From: Takuya Ueda Date: Wed, 21 Dec 2016 03:43:05 +0000 (+0900) Subject: go/parser: fix reference in ParseExprFrom docs X-Git-Tag: go1.8rc1~65 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8599c0da1f7ffc1f230ee49ddb9838a5caff358a;p=gostls13.git go/parser: fix reference in ParseExprFrom docs The ParseExprFrom docs refer to Parse. It meant ParseFile. Fixes #18398 Change-Id: I06fb3b5178c6319e86199823fe4769a8eb9dc49c Reviewed-on: https://go-review.googlesource.com/34671 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/go/parser/interface.go b/src/go/parser/interface.go index bff79cab46..724d8658a7 100644 --- a/src/go/parser/interface.go +++ b/src/go/parser/interface.go @@ -173,7 +173,7 @@ func ParseDir(fset *token.FileSet, path string, filter func(os.FileInfo) bool, m } // ParseExprFrom is a convenience function for parsing an expression. -// The arguments have the same meaning as for Parse, but the source must +// The arguments have the same meaning as for ParseFile, but the source must // be a valid Go (type or value) expression. Specifically, fset must not // be nil. //