]> Cypherpunks repositories - gostls13.git/commitdiff
go/parser: fix reference in ParseExprFrom docs
authorTakuya Ueda <uedatakuya@gmail.com>
Wed, 21 Dec 2016 03:43:05 +0000 (12:43 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 21 Dec 2016 05:37:31 +0000 (05:37 +0000)
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 <bradfitz@golang.org>
src/go/parser/interface.go

index bff79cab4621abe6fe508ffe329266f6e5d311d8..724d8658a7dcb0d82783dd97e67d654e2a4f5783 100644 (file)
@@ -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.
 //