Skip to content

Commit 9346d48

Browse files
chrisfrankjackc
authored andcommitted
fix OpenDBFromPool example
1 parent 1fdd170 commit 9346d48

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

stdlib/sql.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
// return err
2222
// }
2323
//
24-
// db, err := stdlib.OpenDBFromPool(pool)
25-
// if err != nil {
26-
// return err
27-
// }
24+
// db := stdlib.OpenDBFromPool(pool)
2825
//
2926
// Or a pgx.ConnConfig can be used to set configuration not accessible via connection string. In this case the
3027
// pgx.ConnConfig must first be registered with the driver. This registration returns a connection string which is used

0 commit comments

Comments
 (0)