1
0
Fork 0

parser.go: Fix comment on Parse method for golint

This commit is contained in:
Alex Palaistras 2016-06-02 12:41:53 +01:00
parent 576aa63944
commit aa00425e7a
1 changed files with 2 additions and 3 deletions

View File

@ -35,9 +35,8 @@ func Register(name string, rcvr Parser) error {
return nil
}
// Read and parse document by calling the appropriate concrete parser for the kind
// passed. Returns a parsed document, which can then be queried against, or an
// error if parsing fails.
// Parse calls the appropriate concrete parser for the kind passed. Returns a
// parsed document, which can then be queried against, or an error if parsing fails.
func Parse(kind string, src io.Reader) (Document, error) {
if _, exists := parsers[kind]; !exists {
return nil, fmt.Errorf("Parser for '%s' not found", kind)