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:
parent
42c48998aa
commit
4e9a6067c8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user