Skip to content

Commit e896b5a

Browse files
committed
chore: doc fix
1 parent e2701a7 commit e896b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ impl<DB: sqlx::Database, E> Tx<DB, E> {
113113
/// Explicitly commit the transaction.
114114
///
115115
/// By default, the transaction will be committed when a successful response is returned
116-
/// (specifically, when the [`Service`](crate::Service) middleware intercepts an HTTP `2XX`
117-
/// response). This method allows the transaction to be committed explicitly.
116+
/// (specifically, when the [`Service`](crate::Service) middleware intercepts an HTTP `2XX` or
117+
/// `3XX` response). This method allows the transaction to be committed explicitly.
118118
///
119119
/// **Note:** trying to use the `Tx` extractor again after calling `commit` will currently
120120
/// generate [`Error::OverlappingExtractors`] errors. This may change in future.

0 commit comments

Comments
 (0)