Skip to content

Commit cfd2c5d

Browse files
fiadlieljrasanen
authored andcommitted
Fix error running doc tests.
1 parent 55222e7 commit cfd2c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/pool/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl<DB: Database> PoolOptions<DB> {
378378
/// use sqlx::postgres::PgPoolOptions;
379379
///
380380
/// let pool = PgPoolOptions::new()
381-
/// .after_connect(move |opts, _num_attempts| Box::pin(async move {
381+
/// .before_connect(move |opts, _num_attempts| Box::pin(async move {
382382
/// Ok(Cow::Owned(opts.clone().password("abc")))
383383
/// }))
384384
/// .connect("postgres:// …").await?;

0 commit comments

Comments
 (0)