Skip to content

Commit 0a8fe07

Browse files
author
Kuniwak
committed
Fix a wrong example
1 parent 56d0180 commit 0a8fe07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,8 @@ Promise らしいやり方をとると `.then` で
11531153

11541154
fetch('/api/foo')
11551155
.then(doSomething)
1156-
.then(fetch('/api/bar'))
1156+
.then(function() { return fetch('/api/bar'); })
11571157
.then(doSomething)
1158-
.then(fetch('/api/buz'))
1158+
.then(function() { return fetch('/api/buz'); })
11591159
.then(doSomething);
11601160
```

0 commit comments

Comments
 (0)