Skip to content

Commit

Permalink
Clarify bucket metadata example
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseys committed Feb 2, 2015
1 parent fcc6123 commit 5826a2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/storage/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,13 @@ Bucket.prototype.getMetadata = function(callback) {
* @param {function=} callback - The callback function.
*
* @example
* //-
* // Set website metadata field on the bucket.
* //-
* bucket.setMetadata({
* contentType: 'application/x-font-ttf',
* metadata: {
* my: 'custom',
* properties: 'go here'
* website: {
* mainPageSuffix: 'http://example.com',
* notFoundPage: 'http://example.com/404.html'
* }
* }, function(err, metadata) {});
*/
Expand Down

0 comments on commit 5826a2f

Please sign in to comment.