Skip to content

Commit 29651ee

Browse files
fix syntax typo in readme (#614)
1 parent b293be4 commit 29651ee

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,11 @@ generate({
159159
src: 'index.html',
160160
width: 1300,
161161
height: 900
162-
}).then((({css, html, uncritical})) => {
162+
}).then(({ css, html, uncritical }) => {
163163
// You now have critical-path CSS as well as the modified HTML.
164164
// Works with and without target specified.
165-
...
166-
}).error(err => {
167-
...
165+
}).catch(err => {
166+
//
168167
});
169168
```
170169

0 commit comments

Comments
 (0)