From aa00425e7a2125cee3411a5c115460649f434613 Mon Sep 17 00:00:00 2001 From: Alex Palaistras Date: Thu, 2 Jun 2016 12:41:53 +0100 Subject: [PATCH] parser.go: Fix comment on Parse method for golint --- parser/parser.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/parser/parser.go b/parser/parser.go index fd708ee..a96e026 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -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)