Skip to content

Commit 45a0536

Browse files
spanner: fix formatting in docs
1 parent c7cd4d6 commit 45a0536

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

packages/spanner/src/transaction.js

+1-18
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ Transaction.prototype.run = function(query, callback) {
489489
* this.end();
490490
* })
491491
* .on('end', function() {});
492-
* });
492+
* });
493493
*/
494494
Transaction.prototype.runStream = function(query) {
495495
var self = this;
@@ -646,23 +646,6 @@ Transaction.prototype.retry_ = function(timeout, callback) {
646646
* });
647647
* });
648648
* });
649-
*
650-
* //-
651-
* // You can also omit the callback and return a Promise.
652-
* //-
653-
* transaction.run_(function() {
654-
* return transaction.run('SELECT * FROM Singers')
655-
* .then(function() {
656-
* transaction.insert('Singers', {
657-
* SingerId: 'Id3b',
658-
* Name: 'Joe West'
659-
* });
660-
*
661-
* return transaction.commit();
662-
* });
663-
* }).then(function() {
664-
* // Transaction committed successfully.
665-
* });
666649
*/
667650
Transaction.prototype.run_ = function(fn) {
668651
this.runFn_ = fn;

0 commit comments

Comments
 (0)