Skip to content

Commit c1e78ac

Browse files
committed
Merge pull request DrkSephy#7 from alFReD-NSH/patch-2
Fix promises example
2 parents 7cce5c1 + d9021e3 commit c1e78ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,10 @@ Into vertical code:
688688

689689
```javascript
690690
func1(value1)
691-
.then(func2(value1) { })
692-
.then(func3(value2) { })
693-
.then(func4(value3) { })
694-
.then(func5(value4) {
691+
.then(func2)
692+
.then(func3)
693+
.then(func4)
694+
.then(func5, value5 => {
695695
// Do something with value 5
696696
});
697697
```

0 commit comments

Comments
 (0)