Skip to content

Commit 4f2d88a

Browse files
bad example
1 parent f78119a commit 4f2d88a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

lib/bigquery/table.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,11 @@ Table.prototype.getRows = function(options, callback) {
246246
* @return {WriteStream}
247247
*
248248
* @example
249-
* var kittens = bq.dataset('kittens');
250-
*
251249
* //-
252250
* // Load data from a CSV file.
253251
* //-
254252
* fs.createReadStream('/kittens.csv')
255-
* .pipe(kittens.createWriteStream())
253+
* .pipe(myTable.createWriteStream())
256254
* .on('error', function(error) {})
257255
* .on('complete', function(job) {
258256
* // job is a Job object, which you can use to check the status of the load
@@ -266,7 +264,7 @@ Table.prototype.getRows = function(options, callback) {
266264
* // Load data from a JSON file.
267265
* //-
268266
* fs.createReadStream('/kittens.json')
269-
* .pipe(kittens.createWriteStream('json'))
267+
* .pipe(myTable.createWriteStream('json'))
270268
* .on('complete', function(job) {});
271269
*/
272270
Table.prototype.createWriteStream = function(metadata) {
@@ -453,9 +451,7 @@ Table.prototype.export = function(options, destination, callback) {
453451
* @param {function} callback - The callback function.
454452
*
455453
* @example
456-
* myTable.getMetadata(function(err, metadata) {
457-
* // Use Table metadata here.
458-
* });
454+
* myTable.getMetadata(function(err, metadata) {});
459455
*/
460456
Table.prototype.getMetadata = function(callback) {
461457
this.makeReq_('GET', '', null, null, function(err, resp) {

0 commit comments

Comments
 (0)