diff --git a/lib/datastore/dataset.js b/lib/datastore/dataset.js index efebe244eba..d5a8c48f40c 100644 --- a/lib/datastore/dataset.js +++ b/lib/datastore/dataset.js @@ -273,7 +273,7 @@ Dataset.prototype.runQuery = function(q, callback) { * @param {function} callback - The callback function. * * @example - * dataset.transaction(function(transaction, done) { + * dataset.runInTransaction(function(transaction, done) { * // From the `transaction` object, execute dataset methods as usual. * // Call `done` when you're ready to commit all of the changes. * transaction.get(dataset.key('Company', 123), function(err, entity) {