[Pkg-javascript-commits] [node-async] 457/480: Fence code block as js
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-async.
commit ffab0a86e4ec35e8117de541719536b2cd0bf598
Author: Kevin Sawicki <kevin at github.com>
Date: Tue Apr 15 15:05:39 2014 -0700
Fence code block as js
---
README.md | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index a32d437..c57538d 100644
--- a/README.md
+++ b/README.md
@@ -532,20 +532,21 @@ __Sort Order__
By modifying the callback parameter the sorting order can be influenced:
- //ascending order
- async.sortBy([1,9,3,5], function(x, callback){
- callback(err, x);
- }, function(err,result){
- //result callback
- } );
-
- //descending order
- async.sortBy([1,9,3,5], function(x, callback){
- callback(err, x*-1); //<- x*-1 instead of x, turns the order around
- }, function(err,result){
- //result callback
- } );
-
+```js
+//ascending order
+async.sortBy([1,9,3,5], function(x, callback){
+ callback(err, x);
+}, function(err,result){
+ //result callback
+} );
+
+//descending order
+async.sortBy([1,9,3,5], function(x, callback){
+ callback(err, x*-1); //<- x*-1 instead of x, turns the order around
+}, function(err,result){
+ //result callback
+} );
+```
---------------------------------------
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git
More information about the Pkg-javascript-commits
mailing list