diff --git a/bluebird.md b/bluebird.md index 578b09587..5870ef022 100644 --- a/bluebird.md +++ b/bluebird.md @@ -49,7 +49,7 @@ Promise.join( Use `.all`, `.any`, `.race`, or `.some`. ```js -Promise.all([ pro1, pro2 ]) +Promise.all([ promise1, promise2 ]) .then(function (results) { results[0] results[1] @@ -57,7 +57,8 @@ Promise.all([ pro1, pro2 ]) // succeeds if one succeeds first Promise.any(promises) - .then(...) + .then(function (result) { + }) ``` ### Object diff --git a/promise.md b/promise.md index ef4b04447..c890b96b6 100644 --- a/promise.md +++ b/promise.md @@ -36,12 +36,12 @@ var promises = [ // succeeds when all succeed Promise.all(promises) - .then(function (values) { + .then(function (results) { }); // succeeds when one finishes first Promise.race(promises) - .then(function (value) { + .then(function (result) { }); ``` diff --git a/sh-pipes.md b/sh-pipes.md index 1c7da0fc2..37df49393 100644 --- a/sh-pipes.md +++ b/sh-pipes.md @@ -1,6 +1,11 @@ --- title: "Shell: named pipes" -layout: default --- - diff <(ls ./old) <(ls ./new) +```sh +diff <(ls ./old) <(ls ./new) +``` + +## References + +* [Named pipe](https://en.wikipedia.org/wiki/Named_pipe) (wikipedia.org) diff --git a/sh.md b/sh.md index c40df61f3..28bb00370 100644 --- a/sh.md +++ b/sh.md @@ -1,5 +1,5 @@ --- -title: Shell scripting (bash) +title: Bash scripting layout: default --- @@ -233,5 +233,7 @@ or while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do; case $1 in esac; shift; done -* http://wiki.bash-hackers.org/ -* http://wiki.bash-hackers.org/syntax/shellvars +## Reference + +* [Bash-hackers wiki](http://wiki.bash-hackers.org/) (back-hackers.org) +* [Shell vars](http://wiki.bash-hackers.org/syntax/shellvars) (back-hackers.org)