1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:44:45 -07:00

database/sql: fix incorrect function name in example_test

This commit is contained in:
Vivian Liang 2020-04-27 17:20:29 -07:00
parent 42c48998aa
commit 4e9a6067c8

View File

@ -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)