spanner: fix function signature in doc
Change-Id: I8b6b2e2b42e35f60159293c9d17e853579b8456e
Reviewed-on: https://code-review.googlesource.com/18070
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/spanner/doc.go b/spanner/doc.go
index 8219444..2d0105e 100644
--- a/spanner/doc.go
+++ b/spanner/doc.go
@@ -278,7 +278,7 @@
retries automatically. Use the transaction's BufferWrite method to buffer
mutations, which will all be executed at the end of the transaction:
- _, err := client.ReadWriteTransaction(ctx, func(txn *spanner.ReadWriteTransaction) error {
+ _, err := client.ReadWriteTransaction(ctx, func(ctx context.Context, txn *spanner.ReadWriteTransaction) error {
var balance int64
row, err := txn.ReadRow(ctx, "Accounts", spanner.Key{"alice"}, []string{"balance"})
if err != nil {