From 4e9a6067c8307e049ace2e35414a838bf6c8a8a4 Mon Sep 17 00:00:00 2001 From: Vivian Liang Date: Mon, 27 Apr 2020 17:20:29 -0700 Subject: [PATCH] database/sql: fix incorrect function name in example_test --- src/database/sql/example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/sql/example_test.go b/src/database/sql/example_test.go index 4533fc78b1..aafb0e3ad7 100644 --- a/src/database/sql/example_test.go +++ b/src/database/sql/example_test.go @@ -220,7 +220,7 @@ func ExampleTx_Prepare() { } } -func ExampleConn_BeginTx() { +func ExampleDB_BeginTx() { tx, err := db.BeginTx(ctx, &sql.TxOptions{Isolation: sql.LevelSerializable}) if err != nil { log.Fatal(err)