Skip to content

Commit b483526

Browse files
committed
Fix type
1 parent fcb8ade commit b483526

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

type.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io/ioutil"
77
"net/http"
88
"net/url"
9-
"os"
109
"strings"
1110

1211
"github.com/andybalholm/cascadia"
@@ -71,8 +70,7 @@ func NewDocumentFromReader(r io.Reader, contentType string) (*Document, error) {
7170
return nil, e
7271
}
7372
}
74-
println(root.Data)
75-
os.Exit(1)
73+
7674
return newDocument(root, nil), nil
7775
}
7876

@@ -151,8 +149,8 @@ type Matcher interface {
151149
//
152150
// For example, those two statements are semantically equivalent:
153151
//
154-
// sel1 := doc.Find("a").First()
155-
// sel2 := doc.FindMatcher(goquery.Single("a"))
152+
// sel1 := doc.Find("a").First()
153+
// sel2 := doc.FindMatcher(goquery.Single("a"))
156154
//
157155
// The one using Single is optimized to be potentially much faster on large
158156
// documents.

0 commit comments

Comments
 (0)