[Pkg-javascript-commits] [node-async] 398/480: Merge pull request #401 from calendee/eachDocumentation

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:46 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 1961d7da85cc9d13e97e3c56cdac98babc89da80
Merge: 1513f79 b6408da
Author: Caolan McMahon <caolan.mcmahon at gmail.com>
Date:   Fri Mar 28 15:04:17 2014 +0000

    Merge pull request #401 from calendee/eachDocumentation
    
    Additional Example for async.each

 README.md | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --cc README.md
index 8f4a1c8,3fd505e..a41aebd
--- a/README.md
+++ b/README.md
@@@ -174,15 -160,16 +174,16 @@@ there is no guarantee that the iterato
  
  __Arguments__
  
 -* arr - An array to iterate over.
 -* iterator(item, callback) - A function to apply to each item in the array.
 -  The iterator is passed a callback(err) which must be called once it has 
 -  completed. If no error has occured, the callback should be run without 
 -  arguments or with an explicit null argument.
 -* callback(err) - A callback which is called after all the iterator functions
 -  have finished, or an error has occurred.
 +* `arr` - An array to iterate over.
 +* `iterator(item, callback)` - A function to apply to each item in `arr`.
 +  The iterator is passed a `callback(err)` which must be called once it has 
 +  completed. If no error has occured, the `callback` should be run without 
 +  arguments or with an explicit `null` argument.
 +* `callback(err)` - A callback which is called when all `iterator` functions
 +  have finished, or an error occurs.
  
- __Example__
+ __Examples__
+ 
  
  ```js
  // assuming openFiles is an array of file names and saveFile is a function

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