Typo in NewDocumentFromResponse doc

This commit is contained in:
Baptiste Fontaine
2015-04-09 19:33:38 +02:00
parent 269246d9e7
commit 2d28dba982
+1 -1
View File
@@ -51,7 +51,7 @@ func NewDocumentFromReader(r io.Reader) (*Document, error) {
return newDocument(root, nil), nil
}
// NewDocumentFromResponse is another Document constructor that takes an http resonse as argument.
// NewDocumentFromResponse is another Document constructor that takes an http response as argument.
// It loads the specified response's document, parses it, and stores the root Document
// node, ready to be manipulated. The response's body is closed on return.
func NewDocumentFromResponse(res *http.Response) (*Document, error) {