Skip to content

Commit 8328081

Browse files
Haukejbr
authored andcommitted
fix error in documentation
1 parent 9ce4e6d commit 8328081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl PostgresSessionStore {
4040
/// # use async_sqlx_session::PostgresSessionStore;
4141
/// # use async_session::Result;
4242
/// # fn main() -> Result { async_std::task::block_on(async {
43-
/// let pool = sqlx::PgPool::new(&std::env::var("PG_TEST_DB_URL").unwrap()).await.unwrap();
43+
/// let pool = sqlx::PgPool::connect(&std::env::var("PG_TEST_DB_URL").unwrap()).await.unwrap();
4444
/// let store = PostgresSessionStore::from_client(pool)
4545
/// .with_table_name("custom_table_name");
4646
/// store.migrate().await;

0 commit comments

Comments
 (0)