Skip to content

Commit 1dafd01

Browse files
committed
Merge pull request #29 from davidyang/patch-1
chore(sample): Nodejs - update commenting on writing files
2 parents d230526 + 6d6faac commit 1dafd01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/Node.js/flow-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ module.exports = flow = function(temporaryFolder) {
143143
// var stream = fs.createWriteStream(filename);
144144
// r.write(identifier, stream);
145145
// stream.on('data', function(data){...});
146-
// stream.on('end', function(){...});
146+
// stream.on('finish', function(){...});
147147
$.write = function(identifier, writableStream, options) {
148148
options = options || {};
149149
options.end = (typeof options['end'] == 'undefined' ? true : options['end']);
@@ -207,4 +207,4 @@ module.exports = flow = function(temporaryFolder) {
207207
};
208208

209209
return $;
210-
};
210+
};

0 commit comments

Comments
 (0)