diff --git a/book/src/crawl.md b/book/src/crawl.md index b889e9c..809b1ea 100644 --- a/book/src/crawl.md +++ b/book/src/crawl.md @@ -62,7 +62,7 @@ const onPageEvent = (err, value) => { const subscriptionID = website.subscribe(onPageEvent); -await website.crawl(onPageEvent); +await website.crawl(); website.unsubscribe(subscriptionID); // this will run instantly as the crawl is in the background diff --git a/book/src/page.md b/book/src/page.md index 7375fa5..0ac98f4 100644 --- a/book/src/page.md +++ b/book/src/page.md @@ -1,6 +1,6 @@ # Page -A single page on a website, useful if you just the root url. +A single page on a website, useful if you need just the root url. ## New Page