Skip to content

Commit

Permalink
storage: updated documentation for PR googleapis#824
Browse files Browse the repository at this point in the history
This properly documents the new events for read and write streams.
  • Loading branch information
phw committed Sep 22, 2015
1 parent 65880ce commit 5bde21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/storage/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ File.prototype.move = function(destination, callback) {
* "CONTENT_DOWNLOAD_MISMATCH". If you receive this error, the best recourse is
* to try downloading the file again.
*
* NOTE: Readable streams will emit the `complete` event when the file is fully
* NOTE: Readable streams will emit the `end` event when the file is fully
* downloaded.
*
* @param {object=} options - Configuration object.
Expand Down Expand Up @@ -622,7 +622,7 @@ File.prototype.createResumableUpload = function(metadata, callback) {
* Resumable uploads are automatically enabled and must be shut off explicitly
* by setting `options.resumable` to `false`.
*
* NOTE: Writable streams will emit the `complete` event when the file is fully
* NOTE: Writable streams will emit the `finish` event when the file is fully
* uploaded.
*
* @resource [Upload Options (Simple or Resumable)]{@link https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#uploads}
Expand Down

0 comments on commit 5bde21d

Please sign in to comment.