diff --git a/docs/reference/content/tutorials/gridfs/streaming.md b/docs/reference/content/tutorials/gridfs/streaming.md index 9a746d4d77f..910ced50d4f 100644 --- a/docs/reference/content/tutorials/gridfs/streaming.md +++ b/docs/reference/content/tutorials/gridfs/streaming.md @@ -166,7 +166,7 @@ bucket.openDownloadStreamByName('meistersinger.mp3'). on('error', function(error) { assert.ifError(error); }). - on('end', function() { + on('finish', function() { console.log('done!'); process.exit(0); }); @@ -185,7 +185,7 @@ bucket.openDownloadStreamByName('meistersinger.mp3'). on('error', function(error) { assert.ifError(error); }). - on('end', function() { + on('finish', function() { console.log('done!'); process.exit(0); });