From d35d4cec3eba112ffe3ea03e665e1fcd1bdf9a94 Mon Sep 17 00:00:00 2001 From: Anthony Gedeon Date: Mon, 25 Oct 2021 18:16:30 -0500 Subject: [PATCH] fix(doc): update docs for accurate representation of function --- utilities.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/utilities.go b/utilities.go index d4a1b50..656cf01 100644 --- a/utilities.go +++ b/utilities.go @@ -59,16 +59,13 @@ func nodeName(node *html.Node) string { } // Render renders the html of the first element from selector and writes it to the writer. -// It behaves similar to OuterHtml but takes io.Writer as input. +// // It behaves the same as OuterHtml but writes to w instead of returning the string. func Render(w io.Writer, s *Selection) error { if s.Length() == 0 { return nil } n := s.Get(0) - if err := html.Render(w, n); err != nil { - return err - } - return nil + return html.Render(w, n) } // OuterHtml returns the outer HTML rendering of the first item in