Fix naming

This commit is contained in:
Stephan Hoyer 2022-03-02 07:31:34 +01:00
parent 1c07143be4
commit 9906e23118
11 changed files with 13 additions and 13 deletions

View file

@ -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)