Skip to content

Commit 43306cf

Browse files
committed
docs(README): fix typo
1 parent baa9ec0 commit 43306cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The above options are best for multi-page sites. Single-page apps have a few opt
4444

4545
* Call `quicklink()` once a navigation to a new route has completed
4646
* Call `quicklink()` against a specific DOM element / component
47-
* Call `quicklink{urls:[...]}` with a custom set of URLs to prefetch
47+
* Call `quicklink({urls:[...]})` with a custom set of URLs to prefetch
4848

4949
## Recipes
5050

@@ -53,7 +53,7 @@ The above options are best for multi-page sites. Single-page apps have a few opt
5353
Defaults to `document` otherwise.
5454

5555
```js
56-
let elem = document.getElementById('carousel');
56+
const elem = document.getElementById('carousel');
5757
quicklink({
5858
el: elem
5959
});
@@ -65,7 +65,7 @@ If you would prefer to provide a static list of URLs to be prefetched, instead o
6565

6666
```js
6767
quicklink({
68-
urls: ['2.html','4.html']
68+
urls: ['2.html','3.html', '4.js']
6969
});
7070
```
7171

0 commit comments

Comments
 (0)