Fix naming
This commit is contained in:
parent
1c07143be4
commit
9906e23118
11 changed files with 13 additions and 13 deletions
|
|
@ -879,7 +879,7 @@ Since v2.x uses standards-compliant Promises, `m.sync` is redundant. Use `Promis
|
|||
```javascript
|
||||
m.sync([
|
||||
m.request({ method: 'GET', url: 'https://api.github.com/users/lhorie' }),
|
||||
m.request({ method: 'GET', url: 'https://api.github.com/users/isiahmeadows' }),
|
||||
m.request({ method: 'GET', url: 'https://api.github.com/users/dead-claudia' }),
|
||||
])
|
||||
.then(function (users) {
|
||||
console.log("Contributors:", users[0].name, "and", users[1].name)
|
||||
|
|
@ -891,7 +891,7 @@ m.sync([
|
|||
```javascript
|
||||
Promise.all([
|
||||
m.request({ method: 'GET', url: 'https://api.github.com/users/lhorie' }),
|
||||
m.request({ method: 'GET', url: 'https://api.github.com/users/isiahmeadows' }),
|
||||
m.request({ method: 'GET', url: 'https://api.github.com/users/dead-claudia' }),
|
||||
])
|
||||
.then(function (users) {
|
||||
console.log("Contributors:", users[0].name, "and", users[1].name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue